Skip to content

Commit

Permalink
Update PHPStan packages to v2 (major) (#31)
Browse files Browse the repository at this point in the history
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Nathan Boiron <[email protected]>
  • Loading branch information
renovate[bot] and Mopolo authored Nov 21, 2024
1 parent 89d86f1 commit 119e55c
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 24 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.64.0",
"phpstan/extension-installer": "^1.4.3",
"phpstan/phpstan": "^1.12.11",
"phpstan/phpstan-symfony": "^1.4.12",
"phpstan/phpstan": "^2.0.2",
"phpstan/phpstan-symfony": "^2.0.0",
"phpunit/phpunit": "^11.4.3",
"symfony/browser-kit": "^7.1.6",
"symfony/css-selector": "^7.1.6",
Expand Down
37 changes: 18 additions & 19 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions public/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@
require_once dirname(__DIR__) . '/vendor/autoload_runtime.php';

return function (array $context) {
/** @var array{APP_ENV: string, APP_DEBUG: bool} $context */
return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
};
4 changes: 1 addition & 3 deletions tests/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@

require dirname(__DIR__) . '/vendor/autoload.php';

if (method_exists(Dotenv::class, 'bootEnv')) {
(new Dotenv())->bootEnv(dirname(__DIR__) . '/.env');
}
(new Dotenv())->bootEnv(dirname(__DIR__) . '/.env');

if ($_SERVER['APP_DEBUG']) {
umask(0000);
Expand Down

0 comments on commit 119e55c

Please sign in to comment.