Skip to content

Commit

Permalink
fix(deps): Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephan Wentz authored and pl-github committed Apr 26, 2024
1 parent 27cc7c3 commit 5de0ace
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 24 deletions.
25 changes: 12 additions & 13 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@
"brainbits/phpstan-rules": "^3.0",
"dama/doctrine-test-bundle": "^6.0|^7.0",
"doctrine/dbal": "^3.4",
"doctrine/event-manager": "^1.1.1",
"ergebnis/phpstan-rules": "^1.0",
"ergebnis/phpstan-rules": "^2.2.0",
"jangregor/phpstan-prophecy": "^1.0",
"mikey179/vfsstream": "^1.6.11",
"monolog/monolog": "^2.3|^3.0",
Expand All @@ -30,17 +29,17 @@
"riverline/multipart-parser": "^2.0",
"slam/phpstan-extensions": "^6.0",
"squizlabs/php_codesniffer": "^3.7.1",
"symfony/browser-kit": "^5.4|^6.0",
"symfony/console": "^5.3|^6.0",
"symfony/dependency-injection": "^5.3|^6.0",
"symfony/filesystem": "^5.3|^6.0",
"symfony/framework-bundle": "^5.4|^6.0",
"symfony/http-client": "^6.0",
"symfony/http-foundation": "^5.3.7|^6.0",
"symfony/mime": "^6.2",
"symfony/security-core": "^5.3|^6.0",
"symfony/security-csrf": "^6.2",
"symfony/uid": "^6.2",
"symfony/browser-kit": "^6.4|^7.0",
"symfony/console": "^6.4|^7.0",
"symfony/dependency-injection": "^6.4|^7.0",
"symfony/filesystem": "^6.4|^7.0",
"symfony/framework-bundle": "^6.4|^7.0",
"symfony/http-client": "^6.4|^7.0",
"symfony/http-foundation": "^6.4|^7.0",
"symfony/mime": "^6.4|^7.0",
"symfony/security-core": "^6.4|^7.0",
"symfony/security-csrf": "^6.4|^7.0",
"symfony/uid": "^6.4|^7.0",
"thecodingmachine/phpstan-safe-rule": "^1.1",
"thecodingmachine/phpstan-strict-rules": "^1.0"
},
Expand Down
19 changes: 11 additions & 8 deletions phpstan.neon.dist
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,26 @@ parameters:
- src/HttpClientMock/LegacyCallbackHandler.php # needed because of unknown classes when installed with monolog 2.x
- src/ZipContents/ZipContents.php # remove after updating to thecodingmachine/safe >= 2.0
ignoreErrors:
# - '#Class DateTimeImmutable is unsafe to use#' # reactivate after updating to thecodingmachine/safe >= 2.0
- '#Constructor in .* has parameter .* with default value#'
- '#In method "Brainbits\\FunctionalTestHelpers\\Snapshot\\IsXml::.*", caught "Throwable" must be rethrown. Either catch a more specific exception or add a "throw" clause in the "catch" block to propagate the exception.#'
- '#In method "Brainbits\\FunctionalTestHelpers\\Tests\\Uuid\\UuidTraitTest::.*", caught "Throwable" must be rethrown. Either catch a more specific exception or add a "throw" clause in the "catch" block to propagate the exception.#'
#- '#Method .* has a nullable return type declaration#'
#- '#Method .* has parameter .* with a nullable type declaration#'
- '#Method .* has parameter .* with null as default value#'
- '#Method Brainbits\\FunctionalTestHelpers\\Tests\\.*Test::assertMatches.*Snapshot\(\) is protected, but since the containing class is final, it can be private.#'
- '#Method Brainbits\\FunctionalTestHelpers\\Tests\\.*Test::setUpSnapshot\(\) is protected, but since the containing class is final, it can be private.#'
- '#Method Brainbits\\FunctionalTestHelpers\\Tests\\Request\\RequestTraitTest::.*\(\) is protected, but since the containing class is final, it can be private#'
- '#Method Brainbits\\FunctionalTestHelpers\\Tests\\Uuid\\UuidTraitTest::.*\(\) is protected, but since the containing class is final, it can be private#'
- '#Method Brainbits\\FunctionalTestHelpers\\Tests\\ZipContents\\ZipContentsTraitTest::.*\(\) is protected, but since the containing class is final, it can be private#'
ergebnis:
classesAllowedToBeExtended:
- Monolog\Handler\AbstractProcessingHandler
- PHPUnit\Framework\Constraint\Constraint
- RuntimeException
noNullableReturnTypeDeclaration:
enabled: false
noParameterWithNullableTypeDeclaration:
enabled: false
noParameterWithNullDefaultValue:
enabled: false
noExtends:
classesAllowedToBeExtended:
- Monolog\Handler\AbstractProcessingHandler
- PHPUnit\Framework\Constraint\Constraint
- RuntimeException

includes:
- %rootDir%/../../brainbits/phpstan-rules/rules.neon
Expand Down
3 changes: 0 additions & 3 deletions src/Schema/SchemaTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

namespace Brainbits\FunctionalTestHelpers\Schema;

use Doctrine\Common\EventManager;
use Doctrine\DBAL\Connection;
use Doctrine\DBAL\DriverManager;
use PHPUnit\Framework\TestCase;
Expand Down Expand Up @@ -45,8 +44,6 @@ final protected function fixtureFromNewConnection( // @phpstan-ignore-line
'driver' => 'pdo_sqlite',
'memory' => true,
],
null,
new EventManager(),
);

$this->fixtureFromConnection($connection, $schemaBuilder, $dataBuilder, $buildData);
Expand Down

0 comments on commit 5de0ace

Please sign in to comment.