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

Remove static keyword from the function in routes.php. #956

Merged
merged 2 commits into from
Jul 17, 2023

Conversation

ADmad
Copy link
Member

@ADmad ADmad commented Jul 16, 2023

This allows using $this in the function to reference the application class instance. This is required for cases like building an AuthencationMiddleware instance.

This allows using `$this` in the function to reference the application
class instance. This is required for cases like building an AuthencationMiddleware
instance.
@ADmad ADmad added this to the 4.x milestone Jul 16, 2023
@LordSimal LordSimal requested a review from markstory July 16, 2023 17:42
config/routes.php Outdated Show resolved Hide resolved
config/routes.php Outdated Show resolved Hide resolved
@ravage84
Copy link
Member

When testing two of our CakePHP 4.4 applications, they run through the test suite with or without. 👍

Co-authored-by: Marc Würth <[email protected]>
@markstory markstory merged commit 2341e75 into 4.x Jul 17, 2023
@markstory markstory deleted the routes-function branch July 17, 2023 15:49
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