Skip to content

Add a note about Mock classes not considered for security issues #18730

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 10, 2023

Conversation

fabpot
Copy link
Member

@fabpot fabpot commented Aug 10, 2023

No description provided.

@carsonbot carsonbot added this to the 5.4 milestone Aug 10, 2023
@@ -21,6 +21,10 @@ email for confirmation):
production (including the web profiler or anything enabled when ``APP_DEBUG``
is set to ``true`` or ``APP_ENV`` set to anything but ``prod``);

* Any security issues found in classes provided to help fo testing that should
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* Any security issues found in classes provided to help fo testing that should
* Any security issues found in classes provided for testing that should

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed while merging. Thanks.

@@ -21,6 +21,10 @@ email for confirmation):
production (including the web profiler or anything enabled when ``APP_DEBUG``
is set to ``true`` or ``APP_ENV`` set to anything but ``prod``);

* Any security issues found in classes provided to help fo testing that should
never be used in production (like for instance mock classes that contain
``Mock`` in their name);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suggest mentioning the Test namespace as well inside those braces.

Copy link
Member

@javiereguiluz javiereguiluz Aug 10, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added while merging. See ea432f9 Thanks.

@javiereguiluz
Copy link
Member

Thanks Fabien!

@javiereguiluz javiereguiluz merged commit 3e3813b into symfony:5.4 Aug 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants