[PR #841] [MERGED] Bump phpstan/phpstan from 0.10.3 to 0.10.5 #1385

Closed
opened 2026-02-26 03:30:49 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/koel/koel/pull/841
Author: @dependabot-preview[bot]
Created: 10/24/2018
Status: Merged
Merged: 10/29/2018
Merged by: @phanan

Base: masterHead: dependabot/composer/phpstan/phpstan-0.10.5


📝 Commits (1)

  • 0d9b650 Bump phpstan/phpstan from 0.10.3 to 0.10.5

📊 Changes

1 file changed (+10 additions, -10 deletions)

View changed files

📝 composer.lock (+10 -10)

📄 Description

Bumps phpstan/phpstan from 0.10.3 to 0.10.5.

Release notes

Sourced from phpstan/phpstan's releases.

0.10.5

Fixed two PHAR-related autoloading issues that originated in 0.10.4:

  • When running phpstan executable from phpstan-shim instead of phpstan.phar, the message "Fatal error: Cannot redeclare composerRequired3df62903055312660ab99fff5d55b82()" appeared. That's because PHP construct require_once didn't recognize the same file was already loaded. Fixed by checking defined constant about PHPStan runtime: github.com/phpstan/phpstan@4dfaaac59d
  • When running PHPStan's PHAR in a project where PHPStan is already installed locally, the message "PHP Fatal error: Uncaught TypeError: Argument 1 passed to _HumbugBox52624676281c\Symfony\Component\Console\Application::add() must be an instance of _HumbugBox52624676281c\Symfony\Component\Console\Command\Command, instance of PHPStan\Command\AnalyseCommand given" appeared. That's because the project autoloader had priority. Fixed by switching the order of autoloaders (they are prepended): github.com/phpstan/phpstan@c6a8cd1fe0

0.10.4

Improvements

  • Support resolving correct types with array destructuring like list() or [] (#1436), thanks pepakriz!
  • Support for generics syntax for iterable types like Generator or ArrayObject (73cc2118c873c082aa8fbe7b037188ec4d04e7a1) - you can now write Generator<Foo> in phpDoc.
  • Advanced trimming of current working directory and analysed path prefixes from result output (a06113cc96bf2f42412d2d1082606893a41a5dba)
  • Support the never type in phpDoc (#1472), thanks JanTvrdik!
  • Support for Closure::call() (1dc18f241b4717dc2ca46fab7a69aa1dacc66390), #143

Bugfixes

  • Adds properties for Directory class (#1381), thanks josephzidell!
  • Fixed union of long strings (c4eb8ec284eb4f1b6dacb5e3caf64a720896627d), #1396
  • Upgraded XdebugHandler to handle --ansi (c19fef0f684cd33fe438c56dba5595daf602ec3a), #1336
  • switch with instanceof should work with any truthy condition (6dff15c9c091c61c6d26e6e513259d89a5c11c9e)
  • Fixed NullType::toArray() (b1df61a85a0a7f4a2849fa2325173e9d732d980e), #1371
  • Always load the closest PHPStan autoloader (0522ac2d34031d89b689ed9c21e0d032c808398d) - this prevents weird "class not found" errors for PHPStan internals, when running globally installed (or through Docker) PHPStan on a local project where vendor/autoload.php exists.
  • Add properties for DatePeriod class (#1458), thanks cs278!
  • Adding support for second parameter of print_r (returns string when true) (#1471), thanks jaydiablo!
  • Add dynamic return type extension for curl_init with no parameters (#1484), thanks iluuu1994!
  • ResourceType can be cast to integer (#1481), thanks icanhazstring!
  • Fixed always-true reports on string offset access (103dd1778656c9368b491d3f214cbdaf18f08f57), #1376
  • Fixed do-while after loop condition filtering (4602eaf8e9a3038ea5764a3c620a360ffbcb60c7), #1490
  • Fixed casting non-user-defined classes to array (1d79b2c107367aee61c0f3e6f2fdc960500438cd), #1446
  • Make variadic parameter optional in closure (42171039b232f5c4c9745586891335234866d593), #1390, #1407
  • Handle Closure::call only for anonymous function nodes, not all types (bbdd176ad63e9508e4df5548325305f426908263), #143
  • Fixed resolving nested method calls that return $this (734538837fbe76bc87076c577403aaf0bbec3da9), #1493
  • Dynamic return type extension for end() function (#1370), thanks pepakriz!
  • Added alternative spelling of Redis::setEx and setNx (1590d4ba0bffe6cfa70b3629c002ee70b6cc0ede), #1520

Function signatures fixes

  • Fix Ds reflection bugs (#1333), thanks enumag!
  • Correct the type of shared memory identifiers (#1379), thanks duncan3dc!
  • Correct return type for libxml_get_last_error (#1385), thanks lookyman!
  • Fix return type for array_combine (#1375), thanks simPod!
  • Fix signature for newrelic_record_datastore_segment (#1373), thanks rvanvelzen!
  • Fix signature for pg_last_notice (#1373), thanks rvanvelzen!
  • Fix XMLReader::expand() signature (#1394), thanks paxal!
  • Fix several pg_* Postgres function type specs (#1398), thanks mkrauss!
  • Fix case mismatch of Redis::hMSet (#1393), thanks idr0id!
... (truncated)
Commits
  • c6a8cd1 Switch the order of autoloaders because they are prepended
  • 4dfaaac Fix autoloading issue in phpstan-shim
  • 1590d4b Added alternative spelling of Redis::setEx and setNx
  • 39836ba RelativePathHelper - test how mixed paths work
  • 5a63882 Correct return type for end() function
  • ad6b43f Fixed relative file name of anonymous class
  • 056c972 [+]: update "maglnet/ComposerRequireChecker" from 0.2.1 to 1.1.0
  • efde5f6 Allow null in constructor for DateTime and DateTimeImmutable
  • 95fe024 Fix php file permission
  • 0a7de48 Fixed build
  • Additional commits viewable in compare view

Dependabot compatibility score

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 commands and options

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 cancel merge will cancel a previously requested merge
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot ignore this [patch|minor|major] version will close this PR and stop Dependabot creating any more for this minor/major 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)
  • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
  • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
  • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
  • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language
  • @dependabot badge me will comment on this PR with code to add a "Dependabot enabled" badge to your readme

Additionally, you can set the following in your Dependabot dashboard:

  • Update frequency (including time of day and day of week)
  • Automerge options (never/patch/minor, and dev/runtime dependencies)
  • Pull request limits (per update run and/or open at any time)
  • Out-of-range updates (receive only lockfile updates, if desired)
  • Security updates (receive only security updates, if desired)

Finally, you can contact us by mentioning @dependabot.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/koel/koel/pull/841 **Author:** [@dependabot-preview[bot]](https://github.com/apps/dependabot-preview) **Created:** 10/24/2018 **Status:** ✅ Merged **Merged:** 10/29/2018 **Merged by:** [@phanan](https://github.com/phanan) **Base:** `master` ← **Head:** `dependabot/composer/phpstan/phpstan-0.10.5` --- ### 📝 Commits (1) - [`0d9b650`](https://github.com/koel/koel/commit/0d9b6501af413b47d58ffa02800ed5238f59c8c4) Bump phpstan/phpstan from 0.10.3 to 0.10.5 ### 📊 Changes **1 file changed** (+10 additions, -10 deletions) <details> <summary>View changed files</summary> 📝 `composer.lock` (+10 -10) </details> ### 📄 Description Bumps [phpstan/phpstan](https://github.com/phpstan/phpstan) from 0.10.3 to 0.10.5. <details> <summary>Release notes</summary> *Sourced from [phpstan/phpstan's releases](https://github.com/phpstan/phpstan/releases).* > ## 0.10.5 > Fixed two PHAR-related autoloading issues that originated in 0.10.4: > > * When running `phpstan` executable from `phpstan-shim` instead of `phpstan.phar`, the message "Fatal error: Cannot redeclare composerRequired3df62903055312660ab99fff5d55b82()" appeared. That's because PHP construct `require_once` didn't recognize the same file was already loaded. Fixed by checking defined constant about PHPStan runtime: https://github.com/phpstan/phpstan/commit/4dfaaac59d6d1af13fddf6d3e961d69744075be6 > * When running PHPStan's PHAR in a project where PHPStan is already installed locally, the message "PHP Fatal error: Uncaught TypeError: Argument 1 passed to _HumbugBox52624676281c\Symfony\Component\Console\Application::add() must be an instance of _HumbugBox52624676281c\Symfony\Component\Console\Command\Command, instance of PHPStan\Command\AnalyseCommand given" appeared. That's because the project autoloader had priority. Fixed by switching the order of autoloaders (they are prepended): https://github.com/phpstan/phpstan/commit/c6a8cd1fe08a23b9d101a55ffa9ff6b91d71ef5d > > ## 0.10.4 > Improvements > ================== > > * Support resolving correct types with array destructuring like `list()` or `[]` ([#1436](https://github-redirect.dependabot.com/phpstan/phpstan/issues/1436)), thanks [**pepakriz**](https://github.com/pepakriz)! > * Support for generics syntax for iterable types like Generator or ArrayObject (73cc2118c873c082aa8fbe7b037188ec4d04e7a1) - you can now write `Generator<Foo>` in phpDoc. > * Advanced trimming of current working directory and analysed path prefixes from result output (a06113cc96bf2f42412d2d1082606893a41a5dba) > * Support the `never` type in phpDoc ([#1472](https://github-redirect.dependabot.com/phpstan/phpstan/issues/1472)), thanks [**JanTvrdik**](https://github.com/JanTvrdik)! > * Support for `Closure::call()` (1dc18f241b4717dc2ca46fab7a69aa1dacc66390), [#143](https://github-redirect.dependabot.com/phpstan/phpstan/issues/143) > > Bugfixes > ================== > > * Adds properties for `Directory` class ([#1381](https://github-redirect.dependabot.com/phpstan/phpstan/issues/1381)), thanks [**josephzidell**](https://github.com/josephzidell)! > * Fixed union of long strings (c4eb8ec284eb4f1b6dacb5e3caf64a720896627d), [#1396](https://github-redirect.dependabot.com/phpstan/phpstan/issues/1396) > * Upgraded XdebugHandler to handle `--ansi` (c19fef0f684cd33fe438c56dba5595daf602ec3a), [#1336](https://github-redirect.dependabot.com/phpstan/phpstan/issues/1336) > * `switch` with `instanceof` should work with any truthy condition (6dff15c9c091c61c6d26e6e513259d89a5c11c9e) > * Fixed `NullType::toArray()` (b1df61a85a0a7f4a2849fa2325173e9d732d980e), [#1371](https://github-redirect.dependabot.com/phpstan/phpstan/issues/1371) > * Always load the closest PHPStan autoloader (0522ac2d34031d89b689ed9c21e0d032c808398d) - this prevents weird "class not found" errors for PHPStan internals, when running globally installed (or through Docker) PHPStan on a local project where `vendor/autoload.php` exists. > * Add properties for `DatePeriod` class ([#1458](https://github-redirect.dependabot.com/phpstan/phpstan/issues/1458)), thanks [**cs278**](https://github.com/cs278)! > * Adding support for second parameter of `print_r` (returns string when true) ([#1471](https://github-redirect.dependabot.com/phpstan/phpstan/issues/1471)), thanks [**jaydiablo**](https://github.com/jaydiablo)! > * Add dynamic return type extension for `curl_init` with no parameters ([#1484](https://github-redirect.dependabot.com/phpstan/phpstan/issues/1484)), thanks [**iluuu1994**](https://github.com/iluuu1994)! > * ResourceType can be cast to integer ([#1481](https://github-redirect.dependabot.com/phpstan/phpstan/issues/1481)), thanks [**icanhazstring**](https://github.com/icanhazstring)! > * Fixed always-true reports on string offset access (103dd1778656c9368b491d3f214cbdaf18f08f57), [#1376](https://github-redirect.dependabot.com/phpstan/phpstan/issues/1376) > * Fixed do-while after loop condition filtering (4602eaf8e9a3038ea5764a3c620a360ffbcb60c7), [#1490](https://github-redirect.dependabot.com/phpstan/phpstan/issues/1490) > * Fixed casting non-user-defined classes to array (1d79b2c107367aee61c0f3e6f2fdc960500438cd), [#1446](https://github-redirect.dependabot.com/phpstan/phpstan/issues/1446) > * Make variadic parameter optional in closure (42171039b232f5c4c9745586891335234866d593), [#1390](https://github-redirect.dependabot.com/phpstan/phpstan/issues/1390), [#1407](https://github-redirect.dependabot.com/phpstan/phpstan/issues/1407) > * Handle Closure::call only for anonymous function nodes, not all types (bbdd176ad63e9508e4df5548325305f426908263), [#143](https://github-redirect.dependabot.com/phpstan/phpstan/issues/143) > * Fixed resolving nested method calls that return `$this` (734538837fbe76bc87076c577403aaf0bbec3da9), [#1493](https://github-redirect.dependabot.com/phpstan/phpstan/issues/1493) > * Dynamic return type extension for `end()` function ([#1370](https://github-redirect.dependabot.com/phpstan/phpstan/issues/1370)), thanks [**pepakriz**](https://github.com/pepakriz)! > * Added alternative spelling of Redis::setEx and setNx (1590d4ba0bffe6cfa70b3629c002ee70b6cc0ede), [#1520](https://github-redirect.dependabot.com/phpstan/phpstan/issues/1520) > > Function signatures fixes > ================== > > * Fix Ds reflection bugs ([#1333](https://github-redirect.dependabot.com/phpstan/phpstan/issues/1333)), thanks [**enumag**](https://github.com/enumag)! > * Correct the type of shared memory identifiers ([#1379](https://github-redirect.dependabot.com/phpstan/phpstan/issues/1379)), thanks [**duncan3dc**](https://github.com/duncan3dc)! > * Correct return type for `libxml_get_last_error` ([#1385](https://github-redirect.dependabot.com/phpstan/phpstan/issues/1385)), thanks [**lookyman**](https://github.com/lookyman)! > * Fix return type for `array_combine` ([#1375](https://github-redirect.dependabot.com/phpstan/phpstan/issues/1375)), thanks [**simPod**](https://github.com/simPod)! > * Fix signature for `newrelic_record_datastore_segment` ([#1373](https://github-redirect.dependabot.com/phpstan/phpstan/issues/1373)), thanks [**rvanvelzen**](https://github.com/rvanvelzen)! > * Fix signature for `pg_last_notice` ([#1373](https://github-redirect.dependabot.com/phpstan/phpstan/issues/1373)), thanks [**rvanvelzen**](https://github.com/rvanvelzen)! > * Fix `XMLReader::expand()` signature ([#1394](https://github-redirect.dependabot.com/phpstan/phpstan/issues/1394)), thanks [**paxal**](https://github.com/paxal)! > * Fix several pg_* Postgres function type specs ([#1398](https://github-redirect.dependabot.com/phpstan/phpstan/issues/1398)), thanks [**mkrauss**](https://github.com/mkrauss)! > * Fix case mismatch of `Redis::hMSet` ([#1393](https://github-redirect.dependabot.com/phpstan/phpstan/issues/1393)), thanks [**idr0id**](https://github.com/idr0id)! ></table> ... (truncated) </details> <details> <summary>Commits</summary> - [`c6a8cd1`](https://github.com/phpstan/phpstan/commit/c6a8cd1fe08a23b9d101a55ffa9ff6b91d71ef5d) Switch the order of autoloaders because they are prepended - [`4dfaaac`](https://github.com/phpstan/phpstan/commit/4dfaaac59d6d1af13fddf6d3e961d69744075be6) Fix autoloading issue in phpstan-shim - [`1590d4b`](https://github.com/phpstan/phpstan/commit/1590d4ba0bffe6cfa70b3629c002ee70b6cc0ede) Added alternative spelling of Redis::setEx and setNx - [`39836ba`](https://github.com/phpstan/phpstan/commit/39836baf5008289821b17e6de6166b27f2e90987) RelativePathHelper - test how mixed paths work - [`5a63882`](https://github.com/phpstan/phpstan/commit/5a6388242f748bdba1c8824ac60c3d073577b3ee) Correct return type for end() function - [`ad6b43f`](https://github.com/phpstan/phpstan/commit/ad6b43fd7c73ef8829626f5447c8b5eeb115bae8) Fixed relative file name of anonymous class - [`056c972`](https://github.com/phpstan/phpstan/commit/056c9720a35ed79841e28ed687c184309a117fda) [+]: update "maglnet/ComposerRequireChecker" from 0.2.1 to 1.1.0 - [`efde5f6`](https://github.com/phpstan/phpstan/commit/efde5f68c66c6e3c8e55746331985a2e589097ac) Allow null in constructor for DateTime and DateTimeImmutable - [`95fe024`](https://github.com/phpstan/phpstan/commit/95fe02442f1cb732eca54ff17efdb0bc0b78880e) Fix php file permission - [`0a7de48`](https://github.com/phpstan/phpstan/commit/0a7de480ba65da4f59ed34adde36534d1db316c1) Fixed build - Additional commits viewable in [compare view](https://github.com/phpstan/phpstan/compare/0.10.3...0.10.5) </details> <br /> [![Dependabot compatibility score](https://api.dependabot.com/badges/compatibility_score?dependency-name=phpstan/phpstan&package-manager=composer&previous-version=0.10.3&new-version=0.10.5)](https://dependabot.com/compatibility-score.html?dependency-name=phpstan/phpstan&package-manager=composer&previous-version=0.10.3&new-version=0.10.5) 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`. --- <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 cancel merge` will cancel a previously requested merge - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot ignore this [patch|minor|major] version` will close this PR and stop Dependabot creating any more for this minor/major 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) - `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language - `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language - `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language - `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language - `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com): - Update frequency (including time of day and day of week) - Automerge options (never/patch/minor, and dev/runtime dependencies) - Pull request limits (per update run and/or open at any time) - Out-of-range updates (receive only lockfile updates, if desired) - Security updates (receive only security updates, if desired) Finally, you can contact us by mentioning @dependabot. </details> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-26 03:30:49 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/koel-koel#1385
No description provided.