5937 Commits

Author SHA1 Message Date
Fabien Potencier e07cdd3d43 Prepare the 3.4.2 release v3.4.2 2022-08-12 08:47:24 +02:00
Fabien Potencier a34e1f81b9 Update CHANGELOG 2022-08-12 08:46:28 +02:00
Fabien Potencier ecb20e0c52 Merge branch '2.x' into 3.x
* 2.x:
  Bump version
  Prepare the 2.15.2 release
  Update CHANGELOG
2022-08-12 08:45:39 +02:00
Fabien Potencier 48fba37310 Bump version 2022-08-12 08:44:42 +02:00
Fabien Potencier 3e43405a9a Prepare the 2.15.2 release v2.15.2 2022-08-12 08:43:37 +02:00
Fabien Potencier 3296294482 Update CHANGELOG 2022-08-12 08:43:06 +02:00
Fabien Potencier bcda6c3323 Merge branch '2.x' into 3.x
* 2.x:
  Fix CS
  Allow inherited magic method to still run with calling class
2022-08-12 08:33:18 +02:00
Fabien Potencier f2cb718bdb Fix CS 2022-08-12 08:33:05 +02:00
Fabien Potencier 25283066ab bug #3722 Allow inherited magic method to still run with calling class (bennothommo)
This PR was merged into the 2.x branch.

Discussion
----------

Allow inherited magic method to still run with calling class

This is #3719 ported to 2.x and improved a bit.

I also reported https://github.com/php/php-src/issues/8932 because the underlying behavior of PHP is broken to me.

If a static method cannot be resolved to the calling class, but the calling class has, or inherits, a `__callStatic` handler, this allows the `__callStatic` handler to be used with the calling class, and not the inherited class as would occur with reflection. This allows systems such as Laravel facades to still work.

Fixes https://github.com/twigphp/Twig/issues/3716

Commits
-------

d1457a40 Allow inherited magic method to still run with calling class
2022-08-12 08:31:44 +02:00
Ben Thomson d1457a40b6 Allow inherited magic method to still run with calling class
If a static method cannot be resolved to the calling class, but the calling class has, or inherits, a `__callStatic` handler, this allows the `__callStatic` handler to be used with the calling class, and not the inherited class as would occur with reflection. This allows systems such as Laravel facades to still work.

Fixes https://github.com/twigphp/Twig/issues/3716
2022-07-06 10:46:46 +02:00
Fabien Potencier 5b5aea4690 Merge branch '2.x' into 3.x
* 2.x:
  chore: Set permissions for GitHub actions
2022-07-04 21:57:33 +02:00
Fabien Potencier c953a77b23 Merge branch 'pull/3713' into 2.x
* pull/3713:
  chore: Set permissions for GitHub actions
2022-07-04 21:57:15 +02:00
naveen 188fd290c5 chore: Set permissions for GitHub actions
Restrict the GitHub token permissions only to the required ones; this way, even if the attackers will succeed in compromising your workflow, they won’t be able to do much.

- Included permissions for the action. https://github.com/ossf/scorecard/blob/main/docs/checks.md#token-permissions

https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions

https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs

[Keeping your GitHub Actions and workflows secure Part 1: Preventing pwn requests](https://securitylab.github.com/research/github-actions-preventing-pwn-requests/)

Signed-off-by: naveen <172697+naveensrinivasan@users.noreply.github.com>
2022-07-04 21:55:50 +02:00
Fabien Potencier b6017005b3 Merge branch '2.x' into 3.x
* 2.x:
  Bugfix typo in twig/intl-exta
2022-06-10 10:33:05 +02:00
Fabien Potencier 40041cac12 bug #3711 Bugfix typo in twig/intl-exta (nyamsprod)
This PR was merged into the 2.x branch.

Discussion
----------

Bugfix typo in twig/intl-exta

Bugfix typo in text attribute name see https://github.com/twigphp/Twig/issues/3710

Commits
-------

fd2f6d42 Bugfix typo in twig/intl-exta
2022-06-10 10:32:47 +02:00
ignace nyamagana butera fd2f6d4215 Bugfix typo in twig/intl-exta
Bugfix typo in text attribute name see https://github.com/twigphp/Twig/issues/3710
2022-06-07 10:14:11 +02:00
Fabien Potencier 09760aa689 Merge branch '2.x' into 3.x
* 2.x:
  Removed unneeded ext refs
2022-06-02 20:36:43 +02:00
Fabien Potencier 3aba62185d Removed unneeded ext refs 2022-06-02 20:36:38 +02:00
Fabien Potencier 45a8317e61 Merge branch '2.x' into 3.x
* 2.x:
  Fixes `CallExpression::reflectCallable()` throwing `TypeError`
2022-06-02 20:35:24 +02:00
Fabien Potencier 55ce7242b1 bug #3707 Fixes CallExpression::reflectCallable() throwing TypeError (ju1ius)
This PR was submitted for the 3.x branch but it was squashed and merged into the 2.x branch instead.

Discussion
----------

Fixes `CallExpression::reflectCallable()` throwing `TypeError`

See #3708

Commits
-------

e333ccc9 Fixes `CallExpression::reflectCallable()` throwing `TypeError`
2022-06-02 20:33:39 +02:00
ju1ius e333ccc9f6 Fixes CallExpression::reflectCallable() throwing TypeError 2022-06-02 20:33:33 +02:00
Fabien Potencier a1f8d3f91a Bump version 2022-05-17 07:49:32 +02:00
Fabien Potencier e939eae923 Prepare the 3.4.1 release v3.4.1 2022-05-17 07:48:52 +02:00
Fabien Potencier 373c67e3e0 Merge branch '2.x' into 3.x
* 2.x:
  Bump version
  Prepare the 2.15.1 release
  Update CHANGELOG
2022-05-17 07:48:09 +02:00
Fabien Potencier fcc900cf80 Bump version 2022-05-17 07:47:36 +02:00
Fabien Potencier 3b7cedb2f7 Prepare the 2.15.1 release v2.15.1 2022-05-17 07:46:24 +02:00
Fabien Potencier 1b5d977108 Update CHANGELOG 2022-05-17 07:45:45 +02:00
Fabien Potencier d90435f6be Merge branch '2.x' into 3.x
* 2.x:
  Fix optimizing non-public named closures
  Bump version
  Prepare the 2.15.0 release
2022-05-17 07:45:01 +02:00
Fabien Potencier e11c074a4d bug #3704 Fix optimizing non-public named closures (nicolas-grekas)
This PR was merged into the 2.x branch.

Discussion
----------

Fix optimizing non-public named closures

Fix #3703

Commits
-------

dd34e9f5 Fix optimizing non-public named closures
2022-05-17 07:44:00 +02:00
Nicolas Grekas dd34e9f5c9 Fix optimizing non-public named closures 2022-05-16 17:47:23 +02:00
Fabien Potencier 9612dd4f13 Bump version 2022-05-15 08:26:19 +02:00
Fabien Potencier ed19f4bf9d Prepare the 3.4.0 release v3.4.0 2022-05-15 08:25:28 +02:00
Fabien Potencier 137b370376 Bump version 2022-05-15 08:24:02 +02:00
Fabien Potencier 2fcc95728f Prepare the 2.15.0 release v2.15.0 2022-05-15 08:21:48 +02:00
Fabien Potencier 3fdd3b9532 Merge branch '2.x' into 3.x
* 2.x:
  Update CHANGELOG
2022-05-15 08:20:57 +02:00
Fabien Potencier 639c883086 Update CHANGELOG 2022-05-15 08:20:05 +02:00
Fabien Potencier 9ca7fb8799 Merge branch '2.x' into 3.x
* 2.x:
  Fix support for named closures
2022-05-15 08:11:13 +02:00
Fabien Potencier bb64a49441 feature #3702 Fix support for named closures (nicolas-grekas)
This PR was merged into the 2.x branch.

Discussion
----------

Fix support for named closures

As spotted by @stof on https://github.com/symfony/symfony/pull/46335#discussion_r872108567

Commits
-------

163f0740 Fix support for named closures
2022-05-15 08:07:29 +02:00
Nicolas Grekas 163f07400a Fix support for named closures 2022-05-13 17:01:54 +02:00
Fabien Potencier b4d6723715 Merge branch '2.x' into 3.x
* 2.x:
  Tweak previous commit
  [Documentation] Add note about simple string matching
2022-04-09 10:41:06 +02:00
Fabien Potencier ab36653962 Tweak previous commit 2022-04-09 10:41:02 +02:00
Fabien Potencier 6860ca1569 minor #3676 [Documentation] Add note about simple string matching (Kern046)
This PR was merged into the 2.x branch.

Discussion
----------

[Documentation] Add note about simple string matching

During the Symfony Live we mentionned the need to update the documentation around string matching to mention that an approach was possible with the ``ìn`` operator was simpler.

As the documentation part about ``in`` was just below, I wasn't sure that an anchor link was relevant, nor a code example.

Happy to make this first tiny contribution, and available if there are more stuff to do for this PR :).

Commits
-------

5e26ce73 [Documentation] Add note about simple string matching
2022-04-09 10:38:51 +02:00
Axel Venet 5e26ce7320 [Documentation] Add note about simple string matching
Mention the use of ``in`` operator when looking for a simple string instead of ``matches``. #Symfony_Live
2022-04-07 15:41:53 +02:00
Fabien Potencier 321c5cbf20 Bump version 2022-04-06 08:48:37 +02:00
Fabien Potencier 8442df056c Prepare the 2.14.13 release v3.3.10 2022-04-06 08:47:41 +02:00
Fabien Potencier 05c8eb54d8 Merge branch '2.x' into 3.x
* 2.x:
  Bump version
  Prepare the 2.14.13 release
2022-04-06 08:47:08 +02:00
Fabien Potencier f6bd36a694 Bump version 2022-04-06 08:46:17 +02:00
Fabien Potencier 66856cd045 Prepare the 2.14.13 release v2.14.13 2022-04-06 08:45:17 +02:00
Fabien Potencier 9fb8b8dc68 Merge branch '2.x' into 3.x
* 2.x:
  Enable bytecode invalidation with auto_reload
2022-04-05 18:27:22 +02:00
Fabien Potencier 8fa2c9a2b2 bug #3675 Enable cache invalidation when auto_reload=true (GromNaN)
This PR was merged into the 2.x branch.

Discussion
----------

Enable cache invalidation when auto_reload=true

Related to https://github.com/symfony/symfony-docs/pull/16671

Enabling `auto_reload` is not effective when `opcache.validate_timestamps=0`.

Commits
-------

ef8ae9cb Enable bytecode invalidation with auto_reload
2022-04-05 18:27:00 +02:00