Skip to content

Commit

Permalink
Bump phpstan/phpstan from 1.10.57 to 1.10.59 (#2054)
Browse files Browse the repository at this point in the history
Bumps [phpstan/phpstan](https://github.com/phpstan/phpstan) from 1.10.57
to 1.10.59.
<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>1.10.59</h2>
<h1>Bleeding edge 🔪</h1>
<ul>
<li><code>array_values</code> rule (report when a <code>list</code> type
is always passed in) (<a
href="https://redirect.github.com/phpstan/phpstan-src/pull/2917">#2917</a>),
thanks <a
href="https://github.com/kamil-zacek"><code>@​kamil-zacek</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>ArrayFilterRule - tip message about
<code>treatPhpDocTypesAsCertain</code> (<a
href="https://github.com/phpstan/phpstan-src/commit/f5b198c9801282d7002f5310d5ff5318eec54465">https://github.com/phpstan/phpstan-src/commit/f5b198c9801282d7002f5310d5ff5318eec54465</a>)</li>
<li>ArgumentsNormalizer - skip unused arguments in non-variadic
signatures, still return a normalized call (<a
href="https://github.com/phpstan/phpstan-src/commit/17e5bac093c3695a449cf54a2193e74677c0223f">https://github.com/phpstan/phpstan-src/commit/17e5bac093c3695a449cf54a2193e74677c0223f</a>)</li>
<li>Methods in fluent interfaces are considered impure (<a
href="https://github.com/phpstan/phpstan-src/commit/b0261263e2e3a3643a9a89eb0931c07d8e71dc18">https://github.com/phpstan/phpstan-src/commit/b0261263e2e3a3643a9a89eb0931c07d8e71dc18</a>)</li>
<li>Add type-specifying extension for <code>settype()</code> (<a
href="https://redirect.github.com/phpstan/phpstan-src/pull/2920">#2920</a>),
thanks <a
href="https://github.com/ChrisBrenton"><code>@​ChrisBrenton</code></a>!</li>
</ul>
<h1>Bugfixes 🐛</h1>
<ul>
<li>MethodAssertRule - do not report implicitly inherited assert tags
(<a
href="https://github.com/phpstan/phpstan-src/commit/299df5130a14d5a23073edb044b46209ee7b5426">https://github.com/phpstan/phpstan-src/commit/299df5130a14d5a23073edb044b46209ee7b5426</a>),
<a
href="https://redirect.github.com/phpstan/phpstan/issues/10573">#10573</a>
<ul>
<li>Gets rid of the annoying error &quot;Asserted type ... with type ...
does not narrow down the type.&quot;</li>
</ul>
</li>
<li>ConstantArrayType - string offset might exist as integer offset (<a
href="https://github.com/phpstan/phpstan-src/commit/2fb66328fdd7119922ce4579f8951ee776320ef6">https://github.com/phpstan/phpstan-src/commit/2fb66328fdd7119922ce4579f8951ee776320ef6</a>),
<a
href="https://redirect.github.com/phpstan/phpstan/issues/10577">#10577</a></li>
</ul>
<h1>Internals 🔍</h1>
<ul>
<li>Parallelize levels tests (<a
href="https://redirect.github.com/phpstan/phpstan-src/pull/2916">#2916</a>),
thanks <a
href="https://github.com/staabm"><code>@​staabm</code></a>!</li>
<li><code>FunctionReflection::isPure()</code> and
<code>ExtendedMethodReflection::isPure()</code> (<a
href="https://github.com/phpstan/phpstan-src/commit/03d01eae4a59592f7388bc46b14e5db8eff57df8">https://github.com/phpstan/phpstan-src/commit/03d01eae4a59592f7388bc46b14e5db8eff57df8</a>)</li>
</ul>
<h2>1.10.58</h2>
<h1>Improvements 🔧</h1>
<ul>
<li>Verify property type after <code>unset</code> (<a
href="https://github.com/phpstan/phpstan-src/commit/aeadbe28e0b0a05a3a48723ac310cf6c0d852711">https://github.com/phpstan/phpstan-src/commit/aeadbe28e0b0a05a3a48723ac310cf6c0d852711</a>),
<a
href="https://redirect.github.com/phpstan/phpstan/issues/10506">#10506</a>,
<a
href="https://redirect.github.com/phpstan/phpstan/issues/6773">#6773</a></li>
</ul>
<h1>Bugfixes 🐛</h1>
<ul>
<li>InvalidThrowsPhpDocValueRule: support
<code>@phpstan-require-extends</code> (<a
href="https://redirect.github.com/phpstan/phpstan-src/pull/2890">#2890</a>),
<a
href="https://redirect.github.com/phpstan/phpstan/issues/10475">#10475</a>,
thanks <a
href="https://github.com/RobertMe"><code>@​RobertMe</code></a>!</li>
<li><code>sort()</code>, <code>rsort()</code> and <code>usort()</code>
convert an array to list (<a
href="https://redirect.github.com/phpstan/phpstan-src/pull/2891">#2891</a>),
<a
href="https://redirect.github.com/phpstan/phpstan/issues/6467">#6467</a>,
<a
href="https://redirect.github.com/phpstan/phpstan/issues/10423">#10423</a>,
<a
href="https://redirect.github.com/phpstan/phpstan/issues/3312">#3312</a>,
thanks <a
href="https://github.com/takaram"><code>@​takaram</code></a>!</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/phpstan/phpstan/commit/e607609388d3a6d418a50a49f7940e8086798281"><code>e607609</code></a>
PHPStan 1.10.59</li>
<li><a
href="https://github.com/phpstan/phpstan/commit/995eff902ed073adfb5c6fb3d67b6e37b66904e3"><code>995eff9</code></a>
Updated PHPStan to commit 995eff969168ed1d2f291b1d1da8842e7da39f52</li>
<li><a
href="https://github.com/phpstan/phpstan/commit/473df92186f92c3592bfd08a70c6c58c8cb65132"><code>473df92</code></a>
Updated PHPStan to commit 473df926b3f687e968e8e519e310882ab72ff4ff</li>
<li><a
href="https://github.com/phpstan/phpstan/commit/299df511dfd1480bc71e3164ffe772b6522823df"><code>299df51</code></a>
Updated PHPStan to commit 299df5130a14d5a23073edb044b46209ee7b5426</li>
<li><a
href="https://github.com/phpstan/phpstan/commit/d2c30d1fad4b1fbd87730dcefad735c6ac90dfb5"><code>d2c30d1</code></a>
Updated PHPStan to commit d2c30d159f7aabb24f188d7d0a8a1b9ea87f8b61</li>
<li><a
href="https://github.com/phpstan/phpstan/commit/b026126741c0ca6f9d2eac4a57983564177302d1"><code>b026126</code></a>
Updated PHPStan to commit b0261263e2e3a3643a9a89eb0931c07d8e71dc18</li>
<li><a
href="https://github.com/phpstan/phpstan/commit/938321cc97f557b08451fefcd396c2ed7c83d788"><code>938321c</code></a>
Updated PHPStan to commit 938321ce0ebb24da8cd550b525ae50651fffc156</li>
<li><a
href="https://github.com/phpstan/phpstan/commit/cfe839de000f0f661699c2a7b942dd9c4e28b745"><code>cfe839d</code></a>
Update baselines</li>
<li><a
href="https://github.com/phpstan/phpstan/commit/7a2af639835f3bea293154a251e8ce4e6cfe2d6e"><code>7a2af63</code></a>
Updated PHPStan to commit 7a2af631d14529f2c7be95e064fbfef0bedc4b9f</li>
<li><a
href="https://github.com/phpstan/phpstan/commit/37f3c828ea816cb4f14a7eb30e1e7dedd8103d4e"><code>37f3c82</code></a>
Updated PHPStan to commit 37f3c826b18410fbfae33ad2993029b5e8a755b0</li>
<li>Additional commits viewable in <a
href="https://github.com/phpstan/phpstan/compare/1.10.57...1.10.59">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.10.57&new-version=1.10.59)](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>

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: William Allen <[email protected]>
  • Loading branch information
dependabot[bot] and williamjallen authored Mar 7, 2024
1 parent 4ba9980 commit 8d4c92a
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"larastan/larastan": "^2.7",
"mockery/mockery": "1.6.7",
"phpstan/extension-installer": "1.3.1",
"phpstan/phpstan": "1.10.57",
"phpstan/phpstan": "1.10.59",
"phpstan/phpstan-deprecation-rules": "1.1.4",
"phpstan/phpstan-mockery": "1.1.2",
"phpstan/phpstan-phpunit": "1.3.16",
Expand Down
12 changes: 6 additions & 6 deletions composer.lock

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

24 changes: 12 additions & 12 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -814,14 +814,19 @@ parameters:
count: 1
path: app/Http/Controllers/CDash.php

-
message: "#^Argument of an invalid type array\\<int, mixed\\>\\|false supplied for foreach, only iterables are supported\\.$#"
count: 2
path: app/Http/Controllers/CoverageController.php

-
message: "#^Argument of an invalid type array\\<int\\>\\|false supplied for foreach, only iterables are supported\\.$#"
count: 3
path: app/Http/Controllers/CoverageController.php

-
message: "#^Argument of an invalid type array\\|false supplied for foreach, only iterables are supported\\.$#"
count: 9
count: 7
path: app/Http/Controllers/CoverageController.php

-
Expand Down Expand Up @@ -5072,11 +5077,6 @@ parameters:
count: 1
path: app/cdash/app/Controller/Api/Index.php

-
message: "#^Binary operation \"\\+\" between int\\|string\\|false and 1 results in an error\\.$#"
count: 1
path: app/cdash/app/Controller/Api/Index.php

-
message: "#^Binary operation \"\\.\\=\" between list\\<string\\>\\|string and string results in an error\\.$#"
count: 1
Expand Down Expand Up @@ -5203,6 +5203,11 @@ parameters:
count: 1
path: app/cdash/app/Controller/Api/Index.php

-
message: "#^Only numeric types are allowed in \\+, int\\<0, max\\>\\|false given on the left side\\.$#"
count: 1
path: app/cdash/app/Controller/Api/Index.php

-
message: "#^Only numeric types are allowed in \\+, int\\|false given on the right side\\.$#"
count: 1
Expand Down Expand Up @@ -29999,19 +30004,14 @@ parameters:

-
message: "#^Cannot access property \\$id on App\\\\Models\\\\User\\|null\\.$#"
count: 4
count: 1
path: tests/Feature/PasswordRotation.php

-
message: "#^Cannot access property \\$institution on App\\\\Models\\\\User\\|null\\.$#"
count: 1
path: tests/Feature/PasswordRotation.php

-
message: "#^Parameter \\#1 \\$user of method Illuminate\\\\Foundation\\\\Testing\\\\TestCase\\:\\:actingAs\\(\\) expects Illuminate\\\\Contracts\\\\Auth\\\\Authenticatable, App\\\\Models\\\\User\\|null given\\.$#"
count: 5
path: tests/Feature/PasswordRotation.php

-
message: "#^Property Tests\\\\Feature\\\\PasswordRotation\\:\\:\\$user has no type specified\\.$#"
count: 1
Expand Down

0 comments on commit 8d4c92a

Please sign in to comment.