This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| declare(strict_types=1); | |
| interface Context {} | |
| interface Handler | |
| { | |
| public function handle(object $message, Context $context): void; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| #[Attribute(Attribute::TARGET_FUNCTION | Attribute::TARGET_METHOD)] | |
| final readonly class Handler | |
| { | |
| /** | |
| * @param ?class-string $messageClass | |
| */ | |
| public function __construct( | |
| public ?string $messageClass = null |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| declare(strict_types=1); | |
| final readonly class Comparator | |
| { | |
| public static function compare(mixed $a, mixed $b): bool | |
| { | |
| /** @var \WeakMap<object, \WeakMap<object, bool>> */ | |
| $comparedObjects = new \WeakMap(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| declare(strict_types=1); | |
| namespace App\Doctrine\EventListener; | |
| use Doctrine\DBAL\Schema\PostgreSQLSchemaManager; | |
| use Doctrine\ORM\Tools\Event\GenerateSchemaEventArgs; | |
| final class FixPostgreSQLDefaultSchemaListener |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| declare(strict_types=1); | |
| /** | |
| * @return numeric-string | |
| */ | |
| function floatToString(float $float): string | |
| { | |
| $string = (string) $float; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| declare(strict_types=1); | |
| namespace HappyInc\Infrastructure; | |
| /** | |
| * @psalm-pure | |
| */ | |
| function mb_ucfirst(string $string): string |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| declare(strict_types=1); | |
| use HappyInc\Tool\Rector\ReadOnlyPublicPropertyRector; | |
| use HappyInc\Tool\Rector\UuidTRector; | |
| use Rector\Config\RectorConfig; | |
| use Rector\Core\Configuration\Option; | |
| use Rector\Php55\Rector\String_\StringClassNameToClassConstantRector; | |
| use Rector\Php71\Rector\FuncCall\CountOnNullRector; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| declare(strict_types=1); | |
| /** | |
| * @template T | |
| * @param T $x | |
| * @return T | |
| */ | |
| function id(mixed $x): mixed |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| declare(strict_types=1); | |
| namespace PHPyh\Server\ItOps\Migrations; | |
| use Amp\Postgres\PostgresLink; | |
| use Symfony\Component\Finder\Finder; | |
| use Symfony\Component\Finder\SplFileInfo; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| DOCKER_COMPOSE = docker-compose | |
| EXEC_PHP = $(DOCKER_COMPOSE) exec -T php | |
| SYMFONY = $(EXEC_PHP) bin/console | |
| COMPOSER = $(EXEC_PHP) composer | |
| ## | |
| ## Проект | |
| ## ------ | |
| install: start db ## Установить и запустить проект |
NewerOlder