Skip to content

Commit

Permalink
Fix constant return type
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed May 11, 2024
1 parent bfc3b7b commit bffa864
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# 3.10.1 (2024-XX-XX)

* n/a
* Fix constant return type

# 3.10.0 (2024-05-11)

Expand Down
2 changes: 1 addition & 1 deletion src/Extension/CoreExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -1367,7 +1367,7 @@ public static function source(Environment $env, $name, $ignoreMissing = false):
*
* @internal
*/
public static function constant($constant, $object = null): string
public static function constant($constant, $object = null): mixed
{
if (null !== $object) {
if ('class' === $constant) {
Expand Down

0 comments on commit bffa864

Please sign in to comment.