The Symfony PHP framework https://symfony.com
Find a file
Christian Flothmann 62aabdefd2 minor #63086 [Security] do not use PHPUnit mock objects without configured expectations (xabbuh)
This PR was merged into the 7.4 branch.

Discussion
----------

[Security] do not use PHPUnit mock objects without configured expectations

| Q             | A
| ------------- | ---
| Branch?       | 7.4
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Issues        |
| License       | MIT

Commits
-------

0d4e3eb560 do not use PHPUnit mock objects without configured expectations
2026-01-14 13:59:13 +01:00
.github Merge branch '7.3' into 7.4 2026-01-07 18:57:37 +01:00
src/Symfony minor #63086 [Security] do not use PHPUnit mock objects without configured expectations (xabbuh) 2026-01-14 13:59:13 +01:00
.editorconfig
.git-blame-ignore-revs - 2025-07-10 10:48:10 +02:00
.gitattributes [JsonStreamer] update .gitattributes paths for JsonStreamer 2025-07-23 00:07:26 -03:00
.gitignore Introduce twig-cs-fixer 2025-09-14 10:01:01 +02:00
.php-cs-fixer.dist.php PHP CS Fixer: re-apply php_unit_attributes 2025-12-30 11:53:18 +01:00
.twig-cs-fixer.dist.php Configure Twig-CS-Fixer to lint all files and exclude if necessary 2026-01-04 10:46:01 +01:00
CHANGELOG-7.0.md Update CHANGELOG for 7.0.10 2024-07-26 16:55:53 +02:00
CHANGELOG-7.1.md Update CHANGELOG for 7.1.10 2024-12-31 15:55:33 +01:00
CHANGELOG-7.2.md Update CHANGELOG for 7.2.8 2025-06-28 10:20:32 +02:00
CHANGELOG-7.3.md Update CHANGELOG for 7.3.9 2025-12-31 09:34:49 +01:00
CHANGELOG-7.4.md Update CHANGELOG for 7.4.3 2025-12-31 09:43:53 +01:00
CODE_OF_CONDUCT.md
composer.json Merge branch '7.3' into 7.4 2025-12-19 11:00:43 +01:00
CONTRIBUTING.md
CONTRIBUTORS.md Update CONTRIBUTORS for 6.4.31 2025-12-31 09:27:24 +01:00
LICENSE Update license years (last time) 2023-01-24 15:02:46 +01:00
link Add missing Path class required for link tool 2025-11-19 11:15:26 +01:00
phpunit use PHPUnit 12.4 2025-10-08 10:53:36 +02:00
phpunit.xml.dist Use standard MONGODB_URI for test configuration 2025-10-23 01:37:54 +02:00
psalm.xml Merge branch '6.4' into 7.3 2025-12-14 09:06:00 +01:00
README.md - 2025-11-27 09:11:00 +01:00
splitsh.json Add contract splitting 2026-01-08 12:14:07 +01:00
UPGRADE-7.0.md [SecurityBundle] Add missing removed config options to upgrade guide 2024-01-12 14:47:19 +01:00
UPGRADE-7.1.md Fix typo in typo fix 2024-07-18 09:41:37 +02:00
UPGRADE-7.2.md Proofread UPGRADE guide 2024-11-25 16:21:05 +01:00
UPGRADE-7.3.md Typo 2026-01-06 06:07:11 +01:00
UPGRADE-7.4.md feature #62892 [BrowserKit] Allow wrapping response content to give proper context when fetching fragments (Jean-Beru) 2026-01-05 10:46:45 +01:00

Symfony Logo

Symfony is a PHP framework for web and console applications and a set of reusable PHP components. Symfony is used by thousands of web applications and most of the popular PHP projects.

Installation

Sponsor

Symfony 7.4 is backed by:

As the creator of Symfony, SensioLabs supports companies using Symfony, with an offering encompassing consultancy, expertise, services, training, and technical assistance to ensure the success of web application development projects.

Private Packagist is a fast, reliable, and secure Composer repository for your private packages. It mirrors all your open-source dependencies for better availability and monitors them for security vulnerabilities.

redirection.io logs all your websites HTTP traffic, and lets you fix errors with redirect rules in seconds. Give your marketing, SEO and IT teams the right tool to manage your website traffic efficiently!

JoliCode is a team of passionate developers and open-source lovers, with a strong expertise in PHP & Symfony technologies. They can help you build your projects using state-of-the-art practices.

Help Symfony by sponsoring its development!

Documentation

Community

Contributing

Symfony is an Open Source, community-driven project with thousands of contributors. Join them contributing code or contributing documentation.

Security Issues

If you discover a security vulnerability within Symfony, please follow our disclosure procedure.

About Us

Symfony development is led by the Symfony Core Team and supported by Symfony contributors.