Skip to content
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

Don't override $path parameter #4787

Merged
merged 1 commit into from
Jun 7, 2021

Conversation

jeromegamez
Copy link
Contributor

$path is given as parameter and overridden in case $namespace is an array. While it doesn't make a difference when executing the method, it could introduce side effects in the future in case the method is changed and the override is overlooked 🤞

:octocat:

@jeromegamez jeromegamez changed the title Don't override parameter value Don't override method parameter Jun 7, 2021
@jeromegamez jeromegamez changed the title Don't override method parameter Don't override $path parameter Jun 7, 2021
Copy link
Member

@MGatner MGatner left a comment

Choose a reason for hiding this comment

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

Good catch! That was definitely a mistake.

@paulbalandan paulbalandan merged commit 72e9bf9 into codeigniter4:develop Jun 7, 2021
@jeromegamez jeromegamez deleted the namespaced-path branch June 7, 2021 16:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants