Skip to content

Commit

Permalink
Merge branch '2.12.x' into 2.13.x
Browse files Browse the repository at this point in the history
* 2.12.x:
  PHPStan 1.6.1 (#9688)
  Drop SymfonyStyle[listing] for sqls (#9679)
  • Loading branch information
derrabus committed Apr 27, 2022
2 parents 5fbe5eb + 0846b8b commit 825e964
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 18 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"doctrine/annotations": "^1.13",
"doctrine/coding-standard": "^9.0",
"phpbench/phpbench": "^0.16.10 || ^1.0",
"phpstan/phpstan": "~1.4.10 || 1.6.0",
"phpstan/phpstan": "~1.4.10 || 1.6.1",
"phpunit/phpunit": "^7.5 || ^8.5 || ^9.4",
"psr/log": "^1 || ^2 || ^3",
"squizlabs/php_codesniffer": "3.6.2",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,9 @@ protected function executeSchemaCommand(InputInterface $input, OutputInterface $
if ($dumpSql) {
$ui->text('The following SQL statements will be executed:');
$ui->newLine();
$ui->listing($sqls);
foreach ($sqls as $sql) {
$ui->text(sprintf(' %s;', $sql));
}
}

if ($force) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,9 @@ protected function execute(InputInterface $input, OutputInterface $output)
if ($output->getVerbosity() >= OutputInterface::VERBOSITY_VERBOSE) {
$sqls = $validator->getUpdateSchemaList();
$ui->comment(sprintf('<info>%d</info> schema diff(s) detected:', count($sqls)));
$ui->listing($sqls);
foreach ($sqls as $sql) {
$ui->text(sprintf(' %s;', $sql));
}
}

$exit += 2;
Expand Down
5 changes: 0 additions & 5 deletions phpstan-dbal2.neon
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,3 @@ parameters:
-
message: '#^Call to method injectObjectManager\(\) on an unknown class Doctrine\\Persistence\\ObjectManagerAware\.$#'
path: lib/Doctrine/ORM/UnitOfWork.php

# See https://github.com/phpstan/phpstan/issues/7096
-
message: '#^Method Doctrine\\ORM\\Mapping\\ReflectionEnumProperty\:\:initializeEnumValue\(\) should return BackedEnum but returns static\.$#'
path: lib/Doctrine/ORM/Mapping/ReflectionEnumProperty.php
5 changes: 0 additions & 5 deletions phpstan-persistence2.neon
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,3 @@ parameters:
-
message: "#^Return type \\(Doctrine\\\\ORM\\\\Mapping\\\\Driver\\\\AttributeReader\\) of method Doctrine\\\\ORM\\\\Mapping\\\\Driver\\\\AttributeDriver\\:\\:getReader\\(\\) should be compatible with return type \\(Doctrine\\\\Common\\\\Annotations\\\\Reader\\) of method Doctrine\\\\Persistence\\\\Mapping\\\\Driver\\\\AnnotationDriver\\:\\:getReader\\(\\)$#"
path: lib/Doctrine/ORM/Mapping/Driver/AttributeDriver.php

# See https://github.com/phpstan/phpstan/issues/7096
-
message: '#^Method Doctrine\\ORM\\Mapping\\ReflectionEnumProperty\:\:initializeEnumValue\(\) should return BackedEnum but returns static\.$#'
path: lib/Doctrine/ORM/Mapping/ReflectionEnumProperty.php
5 changes: 0 additions & 5 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,3 @@ parameters:
-
message: '#^Call to method injectObjectManager\(\) on an unknown class Doctrine\\Persistence\\ObjectManagerAware\.$#'
path: lib/Doctrine/ORM/UnitOfWork.php

# See https://github.com/phpstan/phpstan/issues/7096
-
message: '#^Method Doctrine\\ORM\\Mapping\\ReflectionEnumProperty\:\:initializeEnumValue\(\) should return BackedEnum but returns static\.$#'
path: lib/Doctrine/ORM/Mapping/ReflectionEnumProperty.php

0 comments on commit 825e964

Please sign in to comment.