Skip to content

Instantly share code, notes, and snippets.

@exileed
Created March 7, 2023 16:00
Show Gist options
  • Save exileed/e4f8e6d0271c3da76c571ce97b4d0472 to your computer and use it in GitHub Desktop.
Save exileed/e4f8e6d0271c3da76c571ce97b4d0472 to your computer and use it in GitHub Desktop.
<?php
interface 😺
{
public function phpyh(string $x): iterable;
}
abstract class 😹 implements 😺
{
abstract public function phpyh(int|string $x): array|\Generator;
}
interface 🐶
{
public function phpyh(string $x, string $y): iterable;
}
final class 🐩 extends 😹 implements 😺, 🐶
{
public function phpyh(int|string|float $x, string $y = 'C 8 марта!'): array
{
return [];
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment