composer upgrade, prevent dbal upgrade, new phpstan version (#2900)

This commit is contained in:
Kevin Papst
2021-11-03 14:58:10 +01:00
committed by GitHub
parent eb63dae405
commit d4278996ae
7 changed files with 324 additions and 380 deletions

View File

@@ -20,6 +20,7 @@
"ext-zip": "*",
"beberlei/doctrineextensions": "^1.2",
"composer/package-versions-deprecated": "^1.8",
"doctrine/dbal": "^2.1",
"doctrine/doctrine-bundle": "^2.0",
"doctrine/doctrine-migrations-bundle": "^3.0",
"doctrine/orm": "^2.8",
@@ -78,10 +79,10 @@
"doctrine/doctrine-fixtures-bundle": "^3.2",
"fakerphp/faker": "^1.15",
"friendsofphp/php-cs-fixer": "^3.0",
"phpstan/phpstan": "^0.12",
"phpstan/phpstan-doctrine": "^0.12",
"phpstan/phpstan-phpunit": "^0.12",
"phpstan/phpstan-symfony": "^0.12",
"phpstan/phpstan": "^1.0",
"phpstan/phpstan-doctrine": "^1.0",
"phpstan/phpstan-phpunit": "^1.0",
"phpstan/phpstan-symfony": "^1.0",
"phpunit/phpunit": "^8.0",
"symfony/browser-kit": "^4.4",
"symfony/css-selector": "^4.4",

686
composer.lock generated

File diff suppressed because it is too large Load Diff

View File

@@ -8,7 +8,7 @@ parameters:
tmpDir: %rootDir%/../../../var/cache/phpstan
ignoreErrors:
- '#Method Symfony\\Contracts\\EventDispatcher\\EventDispatcherInterface::dispatch\(\) invoked with 2 parameters, 1 required.#'
excludes_analyse:
excludePaths:
- %rootDir%/../../../src/Ldap/LdapDriver.php
treatPhpDocTypesAsCertain: false
inferPrivatePropertyTypeFromConstructor: true

View File

@@ -29,6 +29,7 @@ class DemoFull
protected $protectedProperty = false;
/**
* @Exporter\Expose(label="label.Private-Property", type="integer")
* @phpstan-ignore-next-line
*/
private $privateProperty = 123;
@@ -63,6 +64,7 @@ class DemoFull
/**
* @Exporter\Expose(name="fake-method", label="label.Private-Method", type="boolean")
* @phpstan-ignore-next-line
*/
private function privateMethod(): bool
{

View File

@@ -15,6 +15,7 @@ class ExpressionOnProperty
{
/**
* @Exporter\Expose("accessor", label="label.accessor", exp="object.foo")
* @phpstan-ignore-next-line
*/
private $foo;
}

View File

@@ -20,8 +20,6 @@ use Symfony\Component\Security\Http\HttpUtils;
*/
class SamlAuthenticationSuccessHandlerTest extends TestCase
{
private $handler;
public function testWithAlwaysUseDefaultTargetPath()
{
$httpUtils = new HttpUtils($this->getUrlGenerator());

View File

@@ -7,6 +7,6 @@ parameters:
tmpDir: %rootDir%/../../../var/cache/phpstan
ignoreErrors:
- '#Call to static method PHPUnit\\Framework\\Assert::assertSame\(\) with App\\Entity\\[a-zA-Z0-9]+ and null will always evaluate to false.#'
excludes_analyse:
excludePaths:
- %rootDir%/../../../tests/Ldap/LdapDriverTest.php
inferPrivatePropertyTypeFromConstructor: true