Skip to content

chore(deps-dev): bump carthage-software/mago from 1.60.2 to 1.61.0 in /tools/mago - #2768

Open
dependabot[bot] wants to merge 1 commit into
1.xfrom
dependabot/composer/tools/mago/carthage-software/mago-1.61.0
Open

dependabot[bot] wants to merge 1 commit into
1.xfrom
dependabot/composer/tools/mago/carthage-software/mago-1.61.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 25, 2026

Copy link
Copy Markdown
Contributor

Bumps carthage-software/mago from 1.60.2 to 1.61.0.

Release notes

Sourced from carthage-software/mago's releases.

Mago 1.61.0 adds an opt-in check for overly wide @throws types, a no-legacy-constructor rule, and semantics checks for code PHP rejects. It also fixes the nested-loop slowdown from 1.60.0 and brings about 200 fixes to the analyzer, type system, and stubs.

✨ Features

Analyzer

  • Wide throws: adds opt-in find-overly-wide-throw-types for @throws types that never escape. (#2501, #2526, f66a97a, 08432a0, 2c55f7a)
  • False array indexes: reports possibly false values used as array indexes as possibly-false-array-index. (2e08ad6)

Codex

  • Constants in docblocks: resolves global constants in docblock types, as in int-mask<E_ERROR, E_WARNING>. (0d40968)
  • New type names: understands non-empty-scalar, callable-array, callable-object and stringable-object. (a1ff0f8)
  • @phpstan-sealed: reads the classes allowed to extend a class from @phpstan-sealed. (c60a9f7)

Linter

  • no-legacy-constructor: warns about class-named constructors, which PHP 8 runs as plain methods. (#2669, #2744, 2c4ffce)

Semantics

  • Redundant union types: reports native unions that repeat a type or hold one another member covers, which PHP rejects. (8bcf464)

Twig Syntax

  • Attribute spreads: parses {{ ...attributes }} in Symfony UX component tags. (#2739, 1f26c4f)

Reporting

  • JSON columns: adds a column to each position in JSON output. (#2769, 5fc9c97)

🐛 Bug Fixes

Analyzer

Performance

  • Nested loops: removes the slowdown in deeply nested loops that came with 1.60.0. (#2742, 8ee16b4)
  • Loops over mixed: stops nested loops over mixed values from taking exponential time. (#2763, #2764, 2e518e8)

Control Flow

  • Ternaries and match: keeps variables assigned in one branch, and an arm condition's narrowing in its branch. (2ac2b07, cb88a2d)
  • switch variables: gives a case body the variables its condition assigns, and tracks variables a case unsets. (7b41d1e, 19e9c79)
  • switch narrowing: narrows after a switch whose matching cases all leave, and in empty switch (true) cases. (7c52b96, a117bdb)
  • elseif: keeps variables an elseif defines when the if exits, and drops stale negations of reassigned variables. (8d670ab, a185dc6)
  • Short circuits: keeps variables a skipped operand assigns possibly undefined, and what the left of && says. (b3b790e, 4ec0089)
  • Returns: lets a docblock return type with void end without return, and adds null to untyped closures that may. (58a5da0, 42e58f6)
  • Unreachable else: an unreachable else still ends the way its statements do. (a7cfd50)
  • Possibly false returns: stops reporting them when the declared return type is bool. (77b63a0)

... (truncated)

Commits
  • 08934a6 release: 1.61.0
  • 4a2aa36 fix(semantics): report invalid uses of $this (#2786)
  • b1b037c fix(linter): a write in try does not make an earlier one dead
  • 5fc9c97 feat(reporting): add a column to JSON positions
  • b6b1e0d fix(reporting): JSON line numbers start at 1
  • 1fc5946 fix(sdk): rename the Namespace enum cases deprecated in PHP 8.6
  • 30291a7 fix(linter): check method calls in literal-named-argument only when asked
  • 01de7f1 fix(semantics): report callable, void and never as class constant types (#2777)
  • ba5706c fix(prelude): preserve array key types through end() and prev() (#2781)
  • 6e5521f fix(prelude): pcntl_waitpid() sets $status to an int
  • 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 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)

Bumps [carthage-software/mago](https://github.com/carthage-software/mago) from 1.60.2 to 1.61.0.
- [Release notes](https://github.com/carthage-software/mago/releases)
- [Commits](carthage-software/mago@1.60.2...1.61.0)

---
updated-dependencies:
- dependency-name: carthage-software/mago
  dependency-version: 1.61.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot
dependabot Bot requested a review from norberttech as a code owner November 25, 2026 04:34
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file php Pull requests that update php code labels Nov 25, 2026
@codecov

codecov Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.16%. Comparing base (99d769c) to head (29f4969).
⚠️ Report is 5 commits behind head on 1.x.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff            @@
##                1.x    #2768   +/-   ##
=========================================
  Coverage     91.16%   91.16%           
  Complexity    32617    32617           
=========================================
  Files          2257     2257           
  Lines         94275    94275           
=========================================
  Hits          85949    85949           
  Misses         8326     8326           
Components Coverage Δ
etl 96.26% <ø> (ø)
cli 87.40% <ø> (ø)
lib-array-dot 96.52% <ø> (ø)
lib-azure-sdk 69.50% <ø> (ø)
lib-doctrine-dbal-bulk 94.44% <ø> (ø)
lib-filesystem 89.41% <ø> (ø)
lib-types 94.64% <ø> (ø)
lib-parquet 82.80% <ø> (ø)
lib-parquet-viewer 83.15% <ø> (ø)
lib-snappy 89.86% <ø> (ø)
lib-dremel 0.00% <ø> (ø)
lib-postgresql 90.58% <ø> (ø)
lib-telemetry 86.85% <ø> (ø)
bridge-filesystem-async-aws 96.85% <ø> (ø)
bridge-filesystem-azure 95.66% <ø> (ø)
bridge-filesystem-sftp 90.29% <ø> (ø)
bridge-monolog-http 96.84% <ø> (ø)
bridge-monolog-telemetry 92.85% <ø> (ø)
bridge-openapi-specification 91.95% <ø> (ø)
symfony-http-foundation 80.76% <ø> (ø)
bridge-symfony-console 98.01% <ø> (ø)
bridge-psr18-telemetry 100.00% <ø> (ø)
bridge-psr3-telemetry 98.95% <ø> (ø)
bridge-psr7-telemetry 100.00% <ø> (ø)
bridge-telemetry-otlp 90.11% <ø> (ø)
bridge-symfony-http-foundation-telemetry 92.85% <ø> (ø)
bridge-symfony-filesystem-bundle 93.19% <ø> (ø)
bridge-symfony-filesystem-cache 98.18% <ø> (ø)
bridge-symfony-postgresql-bundle 93.88% <ø> (ø)
bridge-symfony-postgresql-cache 94.41% <ø> (ø)
bridge-symfony-postgresql-messenger 98.80% <ø> (ø)
bridge-symfony-postgresql-session 93.65% <ø> (ø)
bridge-symfony-telemetry-bundle 90.77% <ø> (ø)
adapter-chartjs 82.46% <ø> (ø)
adapter-csv 97.68% <ø> (ø)
adapter-doctrine 95.19% <ø> (ø)
adapter-google-sheet 97.53% <ø> (ø)
adapter-http 87.40% <ø> (ø)
adapter-json 90.62% <ø> (ø)
adapter-logger 47.05% <ø> (ø)
adapter-parquet 96.95% <ø> (ø)
adapter-text 97.68% <ø> (ø)
adapter-xml 98.01% <ø> (ø)
adapter-avro 6.25% <ø> (ø)
adapter-excel 96.79% <ø> (ø)
adapter-postgresql 97.38% <ø> (ø)
adapter-seal 90.00% <ø> (ø)
bridge-phpunit-postgresql 75.30% <ø> (ø)
bridge-phpunit-telemetry 87.36% <ø> (ø)
bridge-phpstan-types 0.00% <ø> (ø)
bridge-postgresql-valinor 100.00% <ø> (ø)
🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file php Pull requests that update php code size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants