Skip to content
This repository was archived by the owner on Jan 17, 2026. It is now read-only.

Commit bf66474

Browse files
authored
chore(deps-dev): Bump phpstan/phpstan from 1.12.3 to 2.0.3 (#71)
Bumps [phpstan/phpstan](https://github.com/phpstan/phpstan) from 1.12.3 to 2.0.3. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/phpstan/phpstan/releases">phpstan/phpstan's releases</a>.</em></p> <blockquote> <h2>2.0.3</h2> <p>This release includes improvements and fixes from <a href="https://github.com/phpstan/phpstan/releases/tag/1.12.12">PHPStan 1.12.12</a>.</p> <h1>Bleeding edge 🔪</h1> <ul> <li>Check that values passed to array_sum/product are castable to number (level 5) (<a href="https://redirect.github.com/phpstan/phpstan-src/pull/3658">#3658</a>), <a href="https://redirect.github.com/phpstan/phpstan/issues/11883">#11883</a>, thanks <a href="https://github.com/schlndh"><code>@​schlndh</code></a>!</li> </ul> <p><em>If you want to see the shape of things to come and adopt bleeding edge features early, you can include this config file in your project's <code>phpstan.neon</code>:</em></p> <pre><code>includes: - vendor/phpstan/phpstan/conf/bleedingEdge.neon </code></pre> <p><em>Of course, there are no backwards compatibility guarantees when you include this file. The behaviour and reported errors can change in minor versions with this file included. <a href="https://phpstan.org/blog/what-is-bleeding-edge">Learn more</a></em></p> <h1>Improvements 🔧</h1> <ul> <li>Update BetterReflection with <a href="https://redirect.github.com/Roave/BetterReflection/pull/1462">Roave/BetterReflection#1462</a>, thanks <a href="https://github.com/kukulich"><code>@​kukulich</code></a>!</li> <li>Sanity checks around hooked properties in interfaces and classes (<a href="https://redirect.github.com/phpstan/phpstan-src/pull/3656">#3656</a>), thanks <a href="https://github.com/jakubtobiasz"><code>@​jakubtobiasz</code></a>! <ul> <li>Full support for PHP 8.4 is coming soon in PHPStan 2.1</li> </ul> </li> </ul> <h1>Bugfixes 🐛</h1> <ul> <li>Fix subtracting enums inside <code>in_array</code> (<a href="https://redirect.github.com/phpstan/phpstan-src/pull/3646">#3646</a>), <a href="https://redirect.github.com/phpstan/phpstan/issues/12083">#12083</a>, thanks <a href="https://github.com/janedbal"><code>@​janedbal</code></a>!</li> <li>Last value was not recognized when passing an associative array as an argument (<a href="https://redirect.github.com/phpstan/phpstan-src/pull/3668">#3668</a>), <a href="https://redirect.github.com/phpstan/phpstan/issues/11815">#11815</a>, thanks <a href="https://github.com/sayuprc"><code>@​sayuprc</code></a>!</li> <li>Update PhpStorm stubs (<a href="https://redirect.github.com/phpstan/phpstan-src/pull/3683">#3683</a>), <a href="https://redirect.github.com/phpstan/phpstan/issues/12132">#12132</a></li> </ul> <h1>Function signature fixes 🤖</h1> <ul> <li>3rd parameter of htmlentities and htmlspecialchars allows null (<a href="https://redirect.github.com/phpstan/phpstan-src/pull/3644">#3644</a>), thanks <a href="https://github.com/sreichel"><code>@​sreichel</code></a>!</li> <li>Update curl_setopt string values and allow nullable (<a href="https://redirect.github.com/phpstan/phpstan-src/pull/3634">#3634</a>), thanks <a href="https://github.com/xPaw"><code>@​xPaw</code></a>!* bccomp: more precise return type (<a href="https://redirect.github.com/phpstan/phpstan-src/pull/3647">#3647</a>), thanks <a href="https://github.com/claudepache"><code>@​claudepache</code></a>!</li> </ul> <h1>Internals 🔍</h1> <ul> <li>FunctionCallParametersCheck: Add native parameter type (<a href="https://redirect.github.com/phpstan/phpstan-src/pull/3641">#3641</a>), thanks <a href="https://github.com/staabm"><code>@​staabm</code></a>!</li> <li>Refactor TryRemove/Accepts for DateTime|DateTimeImmutable and Exception|Error (<a href="https://redirect.github.com/phpstan/phpstan-src/pull/3654">#3654</a>), thanks <a href="https://github.com/VincentLanglet"><code>@​VincentLanglet</code></a>!</li> <li>Implement <code>Scope::getPhpVersion()</code> (<a href="https://redirect.github.com/phpstan/phpstan-src/pull/3642">#3642</a>), thanks <a href="https://github.com/staabm"><code>@​staabm</code></a>!</li> <li>Non-capturing catch support detection is scope PHP-version dependent (<a href="https://redirect.github.com/phpstan/phpstan-src/pull/3663">#3663</a>), <a href="https://redirect.github.com/phpstan/phpstan/issues/12114">#12114</a>, thanks <a href="https://github.com/staabm"><code>@​staabm</code></a>!</li> <li>Remove shortArraySyntax definition in <code>Printer::__construct()</code> (<a href="https://redirect.github.com/phpstan/phpstan-src/pull/3680">#3680</a>), thanks <a href="https://github.com/samsonasik"><code>@​samsonasik</code></a>!</li> </ul> <h2>2.0.2</h2> <h1>Improvements 🔧</h1> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/phpstan/phpstan/commit/46b4d3529b12178112d9008337beda0cc2a1a6b4"><code>46b4d35</code></a> PHPStan 2.0.3</li> <li><a href="https://github.com/phpstan/phpstan/commit/6c1173191dbcf26b34fb7634a24571a95ce996e2"><code>6c11731</code></a> Update errors identifiers</li> <li><a href="https://github.com/phpstan/phpstan/commit/e6dc70563b5a02fe92be7b39775ffd8065fc01f5"><code>e6dc705</code></a> Updated PHPStan to commit e6dc705b29b90dcc5f9773377c05aecbfe9fba3a</li> <li><a href="https://github.com/phpstan/phpstan/commit/86197c9dbd8a33f28faf32e4a3023cb2f0942cd1"><code>86197c9</code></a> Updated PHPStan to commit 86197c9987529b5545c0a09ac6ad92581087526f</li> <li><a href="https://github.com/phpstan/phpstan/commit/c95367df5d5b0d7e76abbed4593845ad1eb993b7"><code>c95367d</code></a> Updated PHPStan to commit c95367d52b04d524f1fb154e944ddb1ab8cab9a8</li> <li><a href="https://github.com/phpstan/phpstan/commit/fb56e2e8dc9e3abd22bafbafa9fce987b4f315f6"><code>fb56e2e</code></a> Update Larastan</li> <li><a href="https://github.com/phpstan/phpstan/commit/ae2b6a7cf4ac34f11fa4144b9a5d035d710d7d93"><code>ae2b6a7</code></a> Updated PHPStan to commit ae2b6a709ddcd9a4260587565809bd7f1a50d2bd</li> <li><a href="https://github.com/phpstan/phpstan/commit/62b2683b036b5a7a454fe8e817357b2e0a0ee0d8"><code>62b2683</code></a> Updated PHPStan to commit 62b26835489f98e799718f80517ba30758c5bf20</li> <li><a href="https://github.com/phpstan/phpstan/commit/f9e84e0add3ebffc48f7a9eaed0d869f8112dd1e"><code>f9e84e0</code></a> Updated PHPStan to commit f9e84e05bf9b4e15a4b019d4e372b71ba98e42e8</li> <li><a href="https://github.com/phpstan/phpstan/commit/68803e904ec423c5632088853bc1e6972f24f634"><code>68803e9</code></a> Updated PHPStan to commit 68803e997f4ab10c98a014e4a6d057b99e08b6b7</li> <li>Additional commits viewable in <a href="https://github.com/phpstan/phpstan/compare/1.12.3...2.0.3">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=phpstan/phpstan&package-manager=composer&previous-version=1.12.3&new-version=2.0.3)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details>
2 parents fed95be + 6e27afc commit bf66474

5 files changed

Lines changed: 12 additions & 12 deletions

File tree

‎composer.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
}
2424
},
2525
"require-dev": {
26-
"phpstan/phpstan": "^1.10",
26+
"phpstan/phpstan": "^2.0",
2727
"vimeo/psalm": "^5.22",
2828
"phpunit/phpunit": "^10",
2929
"squizlabs/php_codesniffer": "^3.9",

‎composer.lock‎

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎include/Router.php‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@
2929
final class Router
3030
{
3131
private RouteCollection $route_collection;
32-
private ?ResponseInterface $response;
33-
private ?ServerRequestInterface $request;
32+
private ?ResponseInterface $response = null;
33+
private ?ServerRequestInterface $request = null;
3434

3535
/**
3636
* @throws HTTPCodeNotHandledException

‎phpstan.neon‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,4 @@ parameters:
22
level: 9
33
paths:
44
- include
5-
- tests
6-
checkGenericClassInNonGenericObjectType: false
5+
- tests

‎psalm.xml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<?xml version="1.0"?>
22
<psalm
33
findUnusedCode="false"
4+
findUnusedBaselineEntry="false"
45
>
56
<projectFiles>
67
<directory name="include" />

0 commit comments

Comments
 (0)