Skip to content

Commit

Permalink
Use Phpstan v1
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentLanglet committed Dec 8, 2021
1 parent 7a39cf8 commit 8847a5c
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 11 deletions.
13 changes: 13 additions & 0 deletions .phpstan/ConsoleApplicationLoader.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?php

use Symfony\Component\Console\Application;
use TwigCsFixer\Command\TwigCsFixerCommand;

require __DIR__.'/../vendor/autoload.php';

$command = new TwigCsFixerCommand();

$application = new Application();
$application->add($command);

return $application;
20 changes: 10 additions & 10 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,21 @@
"require": {
"php": ">=7.3",
"ext-mbstring": "*",
"symfony/console": "^4.4 || ^5.0",
"symfony/finder": "^4.4 || ^5.0",
"symfony/twig-bridge": "^4.4 || ^5.0",
"symfony/console": "^4.4 || ^5.0 || ^6.0",
"symfony/finder": "^4.4 || ^5.0 || ^6.0",
"symfony/twig-bridge": "^4.4 || ^5.0 || ^6.0",
"twig/twig": "^2.13.1 || ^3.0.5"
},
"require-dev": {
"infection/infection": "^0.17 || ^0.25",
"phpstan/phpstan": "^0.12.95",
"phpstan/phpstan-phpunit": "^0.12.20",
"phpstan/phpstan-strict-rules": "^0.12.10",
"phpstan/phpstan-symfony": "^0.12.41",
"infection/infection": "^0.17 || ^0.25.4",
"phpstan/phpstan": "^1.2.0",
"phpstan/phpstan-phpunit": "^1.0.0",
"phpstan/phpstan-strict-rules": "^1.1.0",
"phpstan/phpstan-symfony": "^1.0.3",
"phpunit/phpunit": "^9.5",
"psalm/plugin-phpunit": "^0.16.1",
"psalm/plugin-symfony": "^3.0.1",
"vimeo/psalm": "^4.9.3",
"psalm/plugin-symfony": "^3.1.0",
"vimeo/psalm": "^4.15.0",
"vincentlanglet/symfony-custom-coding-standard": "^9.1.0"
},
"config": {
Expand Down
4 changes: 3 additions & 1 deletion phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ parameters:
check:
missingCheckedExceptionInThrows: true
tooWideThrowType: true
implicitThrows: false
implicitThrows: false
symfony:
console_application_loader: .phpstan/ConsoleApplicationLoader.php

# This checks are disabled by default
checkInternalClassCaseSensitivity: true
Expand Down

0 comments on commit 8847a5c

Please sign in to comment.