View check-source-baseline-size.sh
This file contains 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
#!/usr/bin/env bash | |
export TARGET_REF=${TARGET_REF:-HEAD} | |
git show "$TARGET_REF:psalm-baseline.xml" | xmllint --xpath '//file[not(starts-with(@src, "test"))]//@occurrences' - | awk -F\" 'NR % 2 == 0 { print $2 }' | awk '{s+=$1} END {print s}' |
View ClearAllNonPhpunitProperties.php
This file contains 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 Tests\Integration; | |
use PHPUnit\Framework\TestCase; | |
use ReflectionClass; | |
use ReflectionProperty; | |
use Webmozart\Assert\Assert; |
View Day.php
This file contains 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 Core\Domain\Time; | |
use DateTimeImmutable; | |
use DateTimeZone; | |
use Generator; | |
use Iterator; |
View psalm-compendium.php
This file contains 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 | |
// -- types are a compile-time propagated concept | |
// https://psalm.dev/r/338f74a96c | |
class TheType | |
{ | |
/** @var string */ | |
public $foo = 'bar'; | |
} |
View wait-for-elasticsearch.php
This file contains 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
#!/usr/bin/env php | |
<?php | |
declare(strict_types=1); | |
namespace WaitForElasticsearch; | |
use InvalidArgumentException; | |
use UnexpectedValueException; | |
use function curl_close; |
View EventSourcedAggregateContext.php
This file contains 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 Test\Feature; | |
use Shared\Domain\DomainEvent; | |
use Shared\Domain\EventSourcedAggregateRoot; | |
use Webmozart\Assert\Assert; | |
use function array_shift; |
View compiler-pass.php
This file contains 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 | |
final class RegisterRepositoriesForAllEntitiesPass implements CompilerPassInterface | |
{ | |
/** {@inheritdoc} */ | |
public function process(ContainerBuilder $container) | |
{ | |
/** @var MappingDriver $metadata */ | |
$metadata = $container->get($this->mappingDriverServiceName()); | |
$entityManagerReference = new Reference('doctrine.orm.entity_manager'); |
View proposed-dql-inspections.php
This file contains 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 | |
class Foo { | |
private $bar = 'baz'; | |
/** @var Baz @ORM\ManyToOne(targetEntity=Baz::class) */ | |
private $baz; | |
} | |
class Baz { | |
private $tab = 'taz'; |
View DOCTRINE-ORM-3.x-BC-BREAKS-2018-09-12.txt
This file contains 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
[BC] REMOVED: Property Doctrine\ORM\AbstractQuery#$_resultSetMapping was removed | |
[BC] REMOVED: Property Doctrine\ORM\AbstractQuery#$_em was removed | |
[BC] REMOVED: Property Doctrine\ORM\AbstractQuery#$_hints was removed | |
[BC] REMOVED: Property Doctrine\ORM\AbstractQuery#$_hydrationMode was removed | |
[BC] REMOVED: Property Doctrine\ORM\AbstractQuery#$_queryCacheProfile was removed | |
[BC] REMOVED: Property Doctrine\ORM\AbstractQuery#$_expireResultCache was removed | |
[BC] REMOVED: Property Doctrine\ORM\AbstractQuery#$_hydrationCacheProfile was removed | |
[BC] REMOVED: Method Doctrine\ORM\AbstractQuery#_doExecute() was removed | |
[BC] REMOVED: Method Doctrine\ORM\ORMInvalidArgumentException::invalidEntityName() was removed | |
[BC] CHANGED: The parameter $associationMapping of Doctrine\ORM\ORMInvalidArgumentException::newEntityFoundThroughRelationship() changed from array to a non-contravariant Doctrine\ORM\Mapping\AssociationMetadata |
View BC-BREAKS.txt
This file contains 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
[BC] CHANGED: Type documentation for property Doctrine\DBAL\Connection#$_conn changed from \Doctrine\DBAL\Driver\Connection to \Doctrine\DBAL\Driver\Connection|null | |
[BC] CHANGED: Type documentation for property Doctrine\DBAL\Connections\MasterSlaveConnection#$connections changed from \Doctrine\DBAL\Driver\Connection[] to \Doctrine\DBAL\Driver\Connection[]|null[] | |
[BC] CHANGED: Type documentation for property Doctrine\DBAL\Connection#$_conn changed from \Doctrine\DBAL\Driver\Connection to \Doctrine\DBAL\Driver\Connection|null | |
[BC] CHANGED: Type documentation for property Doctrine\DBAL\Connection#$_conn changed from \Doctrine\DBAL\Driver\Connection to \Doctrine\DBAL\Driver\Connection|null | |
[BC] SKIPPED: Provided node "Symfony\Component\Console\Command\Command" is not class, but "interface" | |
[BC] SKIPPED: Provided node "Symfony\Component\Console\Command\Command" is not class, but "interface" | |
[BC] SKIPPED: Provided node "Symfony\Component\Console\Command\Command" is not class, but "interface" | |
[BC] SKIPPED: Provided |
NewerOlder