70 Commits

Author SHA1 Message Date
Ruud Kamphuis f17f5f61ba [ErrorHandler] Fix http_response_code() warning on PHP 8.5 for max execution time errors 2026-04-08 13:02:26 +02:00
Christian Flothmann a658d67960 Merge branch '8.0' into 8.1
* 8.0:
  do not use PHPUnit mock objects without configured expectations
  fix test
  do not use PHPUnit mock objects without configured expectations
  do not use PHPUnit mock objects without configured expectations
  do not use PHPUnit mock objects without configured expectations
2026-01-05 12:50:03 +01:00
Christian Flothmann 78a92b4c0d Merge branch '7.4' into 8.0
* 7.4:
  do not use PHPUnit mock objects without configured expectations
  fix test
  do not use PHPUnit mock objects without configured expectations
  do not use PHPUnit mock objects without configured expectations
  do not use PHPUnit mock objects without configured expectations
2026-01-05 12:45:55 +01:00
Christian Flothmann 32b53252d2 Merge branch '7.3' into 7.4
* 7.3:
  do not use PHPUnit mock objects without configured expectations
  do not use PHPUnit mock objects without configured expectations
  do not use PHPUnit mock objects without configured expectations
  do not use PHPUnit mock objects without configured expectations
2026-01-05 12:45:34 +01:00
Christian Flothmann 421c958f53 Merge branch '6.4' into 7.3
* 6.4:
  do not use PHPUnit mock objects without configured expectations
  do not use PHPUnit mock objects without configured expectations
  do not use PHPUnit mock objects without configured expectations
  do not use PHPUnit mock objects without configured expectations
2026-01-05 12:42:02 +01:00
Christian Flothmann 07bff6be82 do not use PHPUnit mock objects without configured expectations 2026-01-05 12:13:00 +01:00
Dariusz Ruminski d0014b0ed6 PHP CS Fixer: enable static_lambda 2025-12-19 09:33:17 +01:00
Nicolas Grekas df77a871ae Merge branch '7.4' into 8.0
* 7.4:
  run tests using PHPUnit 11.5
  make data provider static
  [Lock] Fix using fractional TTLs on all platforms
  [Lock] Fixes an issue with PostgreSQL when using fractional TTLs
  [Console][Table] Fix unnecessary wrapping
  [DependencyInjection] Deprecate registering a service without a class when its id is a non-existing FQCN
  disable detecting modified indexes with DBAL 4.3
  [cache] RedisTrait::doFetch should use pipeline instead of mget for Relay\Cluster
  relax assertions for forward compatibility with Symfony 7.4
  [Console][Table] Fix invalid UTF-8 due to text wrapping
2025-08-01 18:41:19 +02:00
Christian Flothmann 0c9f6a7cd1 run tests using PHPUnit 11.5 2025-07-31 11:31:17 +02:00
NickSdot 30fd0b3cf0 [Form][PhpUnitBridge] Remove usage of noop ReflectionProperty::setAccessible() 2025-07-24 10:25:04 +02:00
Nicolas Grekas f011fa80da CS fixes 2025-07-10 10:14:14 +02:00
Nicolas Grekas aae9ff4f22 Remove deadcode after the bump to PHP >= 8.4 2025-06-04 12:38:30 +02:00
Alexandre Daubois 95d878c731 Remove no-op ReflectionProperty::setAccessible() calls 2024-09-04 16:41:40 +02:00
Roy de Vos Burchart 0ee7b0fcbd Code style change in @PER-CS2.0 affecting @Symfony (parentheses for anonymous classes) 2024-08-06 12:13:52 +02:00
Nicolas Grekas 2f3e2a8c11 Merge branch '7.0' into 7.1
* 7.0:
  [Console][PhpUnitBridge][VarDumper] Fix `NO_COLOR` empty value handling
  [Translation] Fix CSV escape char in `CsvFileLoader` on PHP >= 7.4
  [DoctrineBridge] fix messenger bus dispatch inside an active transaction
  [HttpFoundation] Add tests for uncovered sections
  treat uninitialized properties referenced by property paths as null
  properly set up constraint options
  [ErrorHandler][VarDumper] Remove PHP 8.4 deprecations
  move adding detailed JSON error messages to the validate phase
  [Profiler] Add word wrap in tables in dialog to see all the text
  [Core] Fix & Enhance security arabic translation.
  [HttpFoundation] Add tests for `MethodRequestMatcher` and `SchemeRequestMatcher`
2024-07-26 14:41:01 +02:00
Nicolas Grekas 231f1b2ee8 Merge branch '5.4' into 6.4
* 5.4:
  [Console][PhpUnitBridge][VarDumper] Fix `NO_COLOR` empty value handling
  [Translation] Fix CSV escape char in `CsvFileLoader` on PHP >= 7.4
  [DoctrineBridge] fix messenger bus dispatch inside an active transaction
  [HttpFoundation] Add tests for uncovered sections
  treat uninitialized properties referenced by property paths as null
  properly set up constraint options
  [ErrorHandler][VarDumper] Remove PHP 8.4 deprecations
  [Core] Fix & Enhance security arabic translation.
2024-07-26 14:30:32 +02:00
Alexandre Daubois db15ba0fd5 [ErrorHandler][VarDumper] Remove PHP 8.4 deprecations 2024-07-23 14:34:05 +02:00
Nicolas Grekas 60ab22b088 Merge branch '7.0' into 7.1
* 7.0:
  Fix CI
  Bump ext-redis in CI on PHP >= 8.4
  Adjust pretty name of closures on PHP 8.4
  implement NodeVisitorInterface instead of extending AbstractNodeVisitor
  sync .github/expected-missing-return-types.diff
  skip test assertions that are no longer valid with PHP >= 8.2.18/8.3.5
2024-04-16 18:29:43 +02:00
Nicolas Grekas ba221d02e8 Merge branch '5.4' into 6.4
* 5.4:
  Fix CI
  Bump ext-redis in CI on PHP >= 8.4
  Adjust pretty name of closures on PHP 8.4
  implement NodeVisitorInterface instead of extending AbstractNodeVisitor
2024-04-16 18:25:57 +02:00
Nicolas Grekas c3c86dd89f Adjust pretty name of closures on PHP 8.4 2024-04-16 14:12:00 +02:00
Alexander M. Turek 87128b9668 Merge branch '7.0' into 7.1
* 7.0:
  [Filesystem] Fix str_contains deprecation
  [Security] Correctly initialize the voter property
  [ErrorHandler] Skip failing tests when "xdebug.file_link_format" option is defined
  [FrameworkBundle] Fix typo
  Update `changed-translation-files` step with native git diff command
  [DependencyInjection] fix XmlDumper when a tag contains also a 'name' property
  [Lock] Check the correct SQLSTATE error code for MySQL
  [ErrorHandler] Fix `ErrorHandlerTest::tearDown()` visibility
  [Lock] compatiblity with redis cluster 7
  [VarDumper] prevent error in value to Typed property must not be accessed before initialization
  fix: typo
  [Messenger] trigger retry logic when message is a redelivery
  [PropertyAccess] Fix checking for missing properties
  add missing invalid extension error entry
2024-03-15 13:53:35 +01:00
Alexander M. Turek d042b5153a Merge branch '5.4' into 6.4
* 5.4:
  [Filesystem] Fix str_contains deprecation
  [Security] Correctly initialize the voter property
  [FrameworkBundle] Fix typo
  Update `changed-translation-files` step with native git diff command
  [Lock] Check the correct SQLSTATE error code for MySQL
  [ErrorHandler] Fix `ErrorHandlerTest::tearDown()` visibility
  [Lock] compatiblity with redis cluster 7
  fix: typo
2024-03-15 13:52:45 +01:00
Christophe Coevoet dc5a929a9a minor #54046 [HttpKernel] Increase log level to "error" at least for all PHP errors (lyrixx)
This PR was merged into the 7.1 branch.

Discussion
----------

[HttpKernel] Increase log level to "error" at least for all PHP errors

| Q             | A
| ------------- | ---
| Branch?       | 7.1
| Bug fix?      | no
| New feature?  | yes
| Deprecations? | no
| Issues        | Fix #54036
| License       | MIT

reproducer: with a simple `$a = $b` in a controller.

Before
```
[PHP        ] [Fri Feb 23 17:14:26 2024] 127.0.0.1:42604 Accepted
[PHP        ] [Fri Feb 23 17:14:26 2024] 127.0.0.1:42604 [200]: GET /
[Web Server ] Feb 23 17:14:26 |INFO   | SERVER GET  (200) / ip="127.0.0.1"
[PHP        ] [Fri Feb 23 17:14:26 2024] 127.0.0.1:42604 Closing
```

After
```
[Web Server ] Feb 23 17:15:11 |INFO   | SERVER GET  (200) / ip="127.0.0.1"
[PHP        ] [Fri Feb 23 17:15:11 2024] 127.0.0.1:57906 Accepted
[PHP        ] {"message":"Matched route \"app_homepage_index\".","context":{"route":"app_homepage_index","route_parameters":{"_route":"app_homepage_index","_controller":"App\\Controller\\HomepageController::index"},"request_uri":"https://127.0.0.1:8000/","method":"GET"},"level":200,"level_name":"INFO","channel":"request","datetime":"2024-02-23T17:15:11.090004+01:00","extra":{}}
[PHP        ] {"message":"Checking for authenticator support.","context":{"firewall_name":"main","authenticators":0},"level":100,"level_name":"DEBUG","channel":"security","datetime":"2024-02-23T17:15:11.090469+01:00","extra":{}}
[PHP        ] {"message":"Warning: Undefined variable $b","context":{"exception":{"class":"ErrorException","message":"Warning: Undefined variable $b","code":0,"file":"/home/gregoire/dev/labs/symfony/symfony-7.1/src/Controller/HomepageController.php:20"}},"level":400,"level_name":"ERROR","channel":"php","datetime":"2024-02-23T17:15:11.090872+01:00","extra":{}}
[PHP        ] [Fri Feb 23 17:15:11 2024] 127.0.0.1:57906 [200]: GET /
[PHP        ] [Fri Feb 23 17:15:11 2024] 127.0.0.1:57906 Closing
```

Commits
-------

796950bbd9 [HttpKernel] Increase log level to "error" at least for all PHP errors
2024-03-14 18:23:17 +01:00
Alexandre Daubois bb6a421797 [ErrorHandler] Fix ErrorHandlerTest::tearDown() visibility 2024-03-13 14:21:57 +01:00
Nicolas Grekas e3885734c1 Merge branch '5.4' into 6.4
* 5.4:
  [ErrorHandler] Fix tests
  [CI] Remove experimental flag on PHP 8.4 job
2024-03-12 15:58:20 +01:00
Nicolas Grekas e2d79995e3 [ErrorHandler] Fix tests 2024-03-12 15:55:32 +01:00
Grégoire Pineau 5ba18e5ad0 [HttpKernel] Increase log level to "error" at least for all PHP errors 2024-02-28 17:34:48 +01:00
Nicolas Grekas 04766f0a8e Merge branch '6.3' into 6.4
* 6.3:
  minor #53524 [Messenger] [AmazonSqs] Allow `async-aws/sqs` version 2 (smoench)
  Fix bad merge
  List CS fix in .git-blame-ignore-revs
  Fix implicitly-required parameters
  List CS fix in .git-blame-ignore-revs
  Apply php-cs-fixer fix --rules nullable_type_declaration_for_default_null_value
2024-01-23 15:51:35 +01:00
Grégoire Pineau 1de20c4214 [HttpKernel] Enhance exception if possible 2023-07-25 10:39:05 +02:00
Nicolas Grekas 85fd65ed29 Merge branch '6.2' into 6.3
* 6.2:
  [Runtime][ErrorHandler] Don't mess with ini_set('assert.warning')
  [DependencyInjection] Fix fetching lazy non-shared services multiple times
2023-07-16 19:05:46 +02:00
Nicolas Grekas 69f92a208e Merge branch '5.4' into 6.2
* 5.4:
  [Runtime][ErrorHandler] Don't mess with ini_set('assert.warning')
2023-07-16 18:55:01 +02:00
Nicolas Grekas b26719213a [Runtime][ErrorHandler] Don't mess with ini_set('assert.warning') 2023-07-16 18:48:57 +02:00
Nicolas Grekas 599f9df251 Merge branch '6.2' into 6.3
* 6.2:
  Fix merge
  Migrate to `static` data providers using `rector/rector`
2023-02-14 10:04:20 +01:00
Nicolas Grekas 61e90f94eb Merge branch '5.4' into 6.2
* 5.4:
  Migrate to `static` data providers using `rector/rector`
2023-02-14 09:44:56 +01:00
Oskar Stark 56a94aa8cb Migrate to static data providers using rector/rector 2023-02-14 09:03:56 +01:00
tigitz 0c657b545e Leverage class name literal on object 2022-11-30 20:10:54 +01:00
François-Xavier de Guillebon 56f9a1bd22 Replace get_class() calls by ::class 2022-09-01 04:03:18 +02:00
Nicolas Grekas b6ae24f509 Merge branch '5.4' into 6.0
* 5.4:
  CS fixes
  Bump Symfony version to 5.4.11
  Update VERSION for 5.4.10
  Update CHANGELOG for 5.4.10
  Bump Symfony version to 4.4.44
  Update VERSION for 4.4.43
  Update CONTRIBUTORS for 4.4.43
  Update CHANGELOG for 4.4.43
2022-06-27 19:10:44 +02:00
Nicolas Grekas 16a29ddbc2 Merge branch '4.4' into 5.4
* 4.4:
  CS fixes
  Bump Symfony version to 4.4.44
  Update VERSION for 4.4.43
  Update CONTRIBUTORS for 4.4.43
  Update CHANGELOG for 4.4.43
2022-06-27 18:58:25 +02:00
Nicolas Grekas 7771a742cc CS fixes 2022-06-27 15:16:42 +02:00
Jérémy Derussé 2ccdd5ecec Remove constraint for PHP < 8 2021-05-23 11:41:13 +02:00
Nicolas Grekas 62d16f0cc0 Merge branch '4.4' into 5.2
* 4.4:
  [SecurityBundle] role_names variable instead of roles
  [PhpUnitBridge] fix reporting deprecations when they come from DebugClassLoader
  [ErrorHandler] fix parsing return types in DebugClassLoader
  [ErrorHandler] fix handling messages with null bytes from anonymous classes
  Restore priority for eventSubscribers
2021-02-04 13:00:01 +01:00
Nicolas Grekas 088eb1df5e [ErrorHandler] fix handling messages with null bytes from anonymous classes 2021-02-02 17:39:26 +01:00
Nicolas Grekas c2bdf8d374 Merge branch '4.4' into 5.1
* 4.4:
  Use createMock() and use import instead of FQCN
2021-01-27 11:01:46 +01:00
Oskar Stark d603654eae Use createMock() and use import instead of FQCN 2021-01-27 10:09:26 +01:00
Fabien Potencier a0fc232c22 Merge branch '4.4' into 5.1
* 4.4:
  Use ::class keyword when possible
2021-01-11 10:50:50 +01:00
Fabien Potencier 09690430f1 Use ::class keyword when possible 2021-01-11 09:57:50 +01:00
Nicolas Grekas 533fdb1e3c Merge branch '4.4' into 5.1
* 4.4:
  Enable "native_constant_invocation" CS rule
  Make AbstractPhpFileCacheWarmer public
2020-09-02 18:23:27 +02:00
Nicolas Grekas dc432104fe Merge branch '3.4' into 4.4
* 3.4:
  Enable "native_constant_invocation" CS rule
  Make AbstractPhpFileCacheWarmer public
2020-09-02 18:08:58 +02:00
Fabien Potencier 525636d4b8 Merge branch '4.4' into 5.1
* 4.4:
  stop using deprecated PHPUnit APIs
2020-08-17 12:01:29 +02:00