Skip to content

chore: update package "rize/uri-template" to "^0.4.1" - #44

Merged
bpolaszek merged 1 commit into
mainfrom
chore-update-rize-uritemplate
Feb 13, 2026
Merged

bpolaszek merged 1 commit into
mainfrom
chore-update-rize-uritemplate

Conversation

@misaert

@misaert misaert commented Feb 13, 2026

Copy link
Copy Markdown
Collaborator

The BC break is the PHP version will be >=8.1 so ok for Freddie.

It permits to remove the deprecation message:

   DEPRECATED  Tests\Unit\Helper\TopicHelperTest > it matches topics with ('/foo', [], false)
  Rize\UriTemplate::__construct(): Implicitly marking parameter $parser as nullable is deprecated, the explicit nullable type must be used instead

  at vendor/rize/uri-template/src/Rize/UriTemplate/UriTemplate.php:10
      6▕
      7▕ /**
      8▕  * Future compatibility
      9▕  */
  ➜  10▕ class UriTemplate extends Template
     11▕ {
     12▕ }
     13▕

  1   src/Helper/TopicHelper.php:71
  2   src/functions.php:22

  ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
   DEPRECATED  Tests\Unit\Helper\TopicHelperTest > it matches topics with ('/foo/bar', ['/foo/{bar}'], true)
  Rize\UriTemplate\Node\Expression::__construct(): Implicitly marking parameter $variables as nullable is deprecated, the explicit nullable type must be used instead

  at vendor/rize/uri-template/src/Rize/UriTemplate/Parser.php:144
    140▕     }
    141▕
    142▕     protected function createExpressionNode($token, Operator\Abstraction $operator = null, array $vars = array())
    143▕     {
  ➜ 144▕         return new Node\Expression($token, $operator, $vars);
    145▕     }
    146▕
    147▕     protected function createLiteralNode($token)
    148▕     {

The BC break is the PHP version will be `>=8.1` so ok for Freddie.

It permits to remove the deprecation message:
```
   DEPRECATED  Tests\Unit\Helper\TopicHelperTest > it matches topics with ('/foo', [], false)
  Rize\UriTemplate::__construct(): Implicitly marking parameter $parser as nullable is deprecated, the explicit nullable type must be used instead

  at vendor/rize/uri-template/src/Rize/UriTemplate/UriTemplate.php:10
      6▕
      7▕ /**
      8▕  * Future compatibility
      9▕  */
  ➜  10▕ class UriTemplate extends Template
     11▕ {
     12▕ }
     13▕

  1   src/Helper/TopicHelper.php:71
  2   src/functions.php:22

  ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
   DEPRECATED  Tests\Unit\Helper\TopicHelperTest > it matches topics with ('/foo/bar', ['/foo/{bar}'], true)
  Rize\UriTemplate\Node\Expression::__construct(): Implicitly marking parameter $variables as nullable is deprecated, the explicit nullable type must be used instead

  at vendor/rize/uri-template/src/Rize/UriTemplate/Parser.php:144
    140▕     }
    141▕
    142▕     protected function createExpressionNode($token, Operator\Abstraction $operator = null, array $vars = array())
    143▕     {
  ➜ 144▕         return new Node\Expression($token, $operator, $vars);
    145▕     }
    146▕
    147▕     protected function createLiteralNode($token)
    148▕     {

```
@misaert
misaert requested a review from bpolaszek February 13, 2026 13:41
@codecov

codecov Bot commented Feb 13, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (ec6ea31) to head (0b22029).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff             @@
##                main       #44   +/-   ##
===========================================
  Coverage     100.00%   100.00%           
  Complexity       165       165           
===========================================
  Files             27        27           
  Lines            437       437           
===========================================
  Hits             437       437           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@bpolaszek
bpolaszek merged commit babfcd2 into main Feb 13, 2026
18 checks passed
@bpolaszek
bpolaszek deleted the chore-update-rize-uritemplate branch February 13, 2026 16:08
@bpolaszek

Copy link
Copy Markdown
Owner

Thank you @misaert 🙏

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants