-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Comparing changes
Open a pull request
base repository: twigphp/Twig
base: v3.22.1
head repository: twigphp/Twig
compare: v3.22.2
- 15 commits
- 9 files changed
- 6 contributors
Commits on Nov 16, 2025
-
Configuration menu - View commit details
-
Copy full SHA for 34e874e - Browse repository at this point
Copy the full SHA 34e874eView commit details
Commits on Nov 19, 2025
-
Configuration menu - View commit details
-
Copy full SHA for 2e0c874 - Browse repository at this point
Copy the full SHA 2e0c874View commit details -
minor #4712 Update .gitattributes to exclude phpstan configs (william…
Configuration menu - View commit details
-
Copy full SHA for 2b7cc0b - Browse repository at this point
Copy the full SHA 2b7cc0bView commit details
Commits on Nov 23, 2025
-
Configuration menu - View commit details
-
Copy full SHA for 473653d - Browse repository at this point
Copy the full SHA 473653dView commit details
Commits on Nov 25, 2025
-
bug #4713 Fix cycle() with non-countable ArrayAccess+Traversable obje…
…cts (yoeunes) This PR was merged into the 3.x branch. Discussion ---------- Fix cycle() with non-countable ArrayAccess+Traversable objects When using `cycle()` with an object that implements `\ArrayAccess` and `\Traversable` but is not `\Countable`, the function currently returns the object instance immediately after triggering the deprecation notice. This prevents the value from being converted to an array, causing the cycle logic to fail or return the object itself. This PR removes the early return to ensure `self::toArray()` is called, allowing these objects to be cycled correctly as expected. **How to test** ```php $seq = new class implements \ArrayAccess, \IteratorAggregate { public function offsetExists($offset): bool { return true; } public function offsetGet($offset): mixed { return 'val'; } public function offsetSet($offset, $value): void {} public function offsetUnset($offset): void {} public function getIterator(): \Traversable { yield 'odd'; yield 'even'; } }; // Should return 'odd', currently returns the $seq object $result = CoreExtension::cycle($seq, 0); ``` Related to #4241 Commits ------- 473653d [Core] Fix cycle() with non-countable ArrayAccess+Traversable objectsConfiguration menu - View commit details
-
Copy full SHA for ce6698a - Browse repository at this point
Copy the full SHA ce6698aView commit details
Commits on Nov 26, 2025
-
Configuration menu - View commit details
-
Copy full SHA for f7daf71 - Browse repository at this point
Copy the full SHA f7daf71View commit details
Commits on Nov 27, 2025
-
Configuration menu - View commit details
-
Copy full SHA for 8074ddc - Browse repository at this point
Copy the full SHA 8074ddcView commit details
Commits on Dec 5, 2025
-
Configuration menu - View commit details
-
Copy full SHA for c4dcd0b - Browse repository at this point
Copy the full SHA c4dcd0bView commit details -
bug #4722 use getShareDir as an indicator of Symfony version (tacman)
Configuration menu - View commit details
-
Copy full SHA for 8308f7f - Browse repository at this point
Copy the full SHA 8308f7fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4f32334 - Browse repository at this point
Copy the full SHA 4f32334View commit details
Commits on Dec 14, 2025
-
Avoid ord deprecation in PHP 8.5
Change the one usage of ord() in Twig where a multibyte character can trigger the new deprecation in PHP 8.5, which is in the `html_attr` escape functionality, previously leading to: ord(): Providing a string that is not one byte long is deprecated. Use ord($str[0]) instead"
Configuration menu - View commit details
-
Copy full SHA for 4d98cce - Browse repository at this point
Copy the full SHA 4d98cceView commit details -
Configuration menu - View commit details
-
Copy full SHA for 537b4f2 - Browse repository at this point
Copy the full SHA 537b4f2View commit details -
bug #4724 Avoid ord deprecation notice in PHP 8.5 (iquito)
This PR was merged into the 3.x branch. Discussion ---------- Avoid ord deprecation notice in PHP 8.5 Change the one usage of `ord()` in Twig where a multibyte character can trigger the new deprecation in PHP 8.5, which is in the `html_attr` escape functionality in EscaperRuntime, currently leading to: ``` ord(): Providing a string that is not one byte long is deprecated. Use ord($str[0]) instead" ``` This small change fixes it. There are no other usages of `ord()` in Twig which lead to this deprecation notice. Commits ------- 4d98cce Avoid ord deprecation in PHP 8.5
Configuration menu - View commit details
-
Copy full SHA for cf87925 - Browse repository at this point
Copy the full SHA cf87925View commit details -
Configuration menu - View commit details
-
Copy full SHA for eca0d9c - Browse repository at this point
Copy the full SHA eca0d9cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 946ddea - Browse repository at this point
Copy the full SHA 946ddeaView commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff v3.22.1...v3.22.2