Skip to content

Commit

Permalink
feature #4011 Add PHP 8.4 support (fabpot)
Browse files Browse the repository at this point in the history
This PR was squashed before being merged into the 3.x branch.

Discussion
----------

Add PHP 8.4 support

Commits
-------

fdfc5dd Fix compat with PHP 8.4
11511e1 Add PHP 8.4 to CI
  • Loading branch information
fabpot committed Apr 16, 2024
2 parents 6091e7d + fdfc5dd commit 8150b68
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Expand Up @@ -28,6 +28,7 @@ jobs:
- '8.1'
- '8.2'
- '8.3'
- '8.4'

steps:
- name: "Checkout code"
Expand Down Expand Up @@ -79,6 +80,7 @@ jobs:
- '8.1'
- '8.2'
- '8.3'
- '8.4'
extension:
- 'cache-extra'
- 'cssinliner-extra'
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG
@@ -1,5 +1,6 @@
# 3.9.0 (2024-XX-XX)

* Add support for PHP 8.4
* Deprecate AbstractNodeVisitor
* Deprecate passing Template to Environment::resolveTemplate(), Environment::load(), and Template::loadTemplate()
* Add a new "yield" mode for output generation;
Expand Down
2 changes: 1 addition & 1 deletion src/Node/Expression/CallExpression.php
Expand Up @@ -297,7 +297,7 @@ private function reflectCallable($callable)
}
$r = new \ReflectionFunction($closure);

if (str_contains($r->name, '{closure}')) {
if (str_contains($r->name, '{closure')) {
return $this->reflector = [$r, $callable, 'Closure'];
}

Expand Down

0 comments on commit 8150b68

Please sign in to comment.