Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement: Synchronize with ergebnis/php-package-template #1292

Merged
merged 1 commit into from
Feb 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
parameters:
ignoreErrors:
-
message: """
#^Call to deprecated method createHelperSet\\(\\) of class Doctrine\\\\ORM\\\\Tools\\\\Console\\\\ConsoleRunner\\:
This method will be removed in ORM 3\\.0 without replacement\\.$#
"""
count: 1
path: config/cli-config.php

-
message: "#^Method Example\\\\Entity\\\\Organization\\:\\:members\\(\\) should return array\\<int, Example\\\\Entity\\\\User\\> but returns array\\.$#"
count: 1
Expand Down
2 changes: 2 additions & 0 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,11 @@ parameters:
level: max

paths:
- config/
- example/
- src/
- test/
- .php-cs-fixer.php
- rector.php

tmpDir: .build/phpstan/
7 changes: 6 additions & 1 deletion psalm-baseline.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<files psalm-version="5.20.0@3f284e96c9d9be6fe6b15c79416e1d1903dcfef4">
<files psalm-version="5.21.1@8c473e2437be8b6a8fd8f630f0f11a16b114c494">
<file src="config/cli-config.php">
<DeprecatedMethod>
<code>ORM\Tools\Console\ConsoleRunner::createHelperSet($entityManager)</code>
</DeprecatedMethod>
</file>
<file src="example/src/Entity/Avatar.php">
<PossiblyUnusedMethod>
<code>height</code>
Expand Down
5 changes: 2 additions & 3 deletions psalm.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,11 @@
</plugins>

<projectFiles>
<directory name="config/" />
<directory name="example/" />
<directory name="src/" />
<directory name="test/" />
<file name=".php-cs-fixer.php" />
<file name="rector.php" />
<ignoreFiles>
<directory name="vendor/" />
</ignoreFiles>
</projectFiles>
</psalm>
3 changes: 3 additions & 0 deletions rector.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,12 @@
$rectorConfig->import(__DIR__ . '/vendor/fakerphp/faker/rector-migrate.php');

$rectorConfig->paths([
__DIR__ . '/config/',
__DIR__ . '/example/',
__DIR__ . '/src/',
__DIR__ . '/test/',
__DIR__ . '/.php-cs-fixer.php',
__DIR__ . '/rector.php',
]);

$rectorConfig->phpVersion(ValueObject\PhpVersion::PHP_81);
Expand Down
Loading