Skip to content

Instantly share code, notes, and snippets.

View bu4ak's full-sized avatar
🤔

Igor bu4ak

🤔
View GitHub Profile
<?php
function foo(int $initialBaz)
{
return new class ($initialBaz) {
public function __construct(private int $baz) {}
public function getBaz(): int
{
return $this->baz;