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

Deprecations warnings #161

Closed
JeremyWinalist opened this issue May 3, 2019 · 4 comments
Closed

Deprecations warnings #161

JeremyWinalist opened this issue May 3, 2019 · 4 comments

Comments

@JeremyWinalist
Copy link

Hi, I have deprecations warnings that I can't find.
I've scanned my project using PhpStorm to find deprecation usages without success.
Is TwigView plugin up to date with CakePhp deprecations ?

Thanks.

src/Template.php:529 
The ArrayAccess methods will be removed in 4.0.0.Use getParam() instead. - /Applications/MAMP/htdocs/my_app/vendor/twig/twig/src/Template.php, line: 529 You can disable deprecation warnings by setting `Error.errorLevel` to `E_ALL & ~E_USER_DEPRECATED` in your config/app.php.
src/Template.php:595 
Accessing query as a property will be removed in 4.0.0. Use getQuery() instead. - /Applications/MAMP/htdocs/my_app/vendor/twig/twig/src/Template.php, line: 595 You can disable deprecation warnings by setting `Error.errorLevel` to `E_ALL & ~E_USER_DEPRECATED` in your config/app.php.
src/Template.php:604 
Accessing `query` as a property will be removed in 4.0.0. Use request->getQuery() instead. - /Applications/MAMP/htdocs/my_app/vendor/twig/twig/src/Template.php, line: 604 You can disable deprecation warnings by setting `Error.errorLevel` to `E_ALL & ~E_USER_DEPRECATED` in your config/app.php.
src/Template.php:529 
The ArrayAccess methods will be removed in 4.0.0.Use getParam() instead. - /Applications/MAMP/htdocs/my_app/vendor/twig/twig/src/Template.php, line: 529 You can disable deprecation warnings by setting `Error.errorLevel` to `E_ALL & ~E_USER_DEPRECATED` in your config/app.php.
src/Template.php:595 
Accessing query as a property will be removed in 4.0.0. Use getQuery() instead. - /Applications/MAMP/htdocs/my_app/vendor/twig/twig/src/Template.php, line: 595 You can disable deprecation warnings by setting `Error.errorLevel` to `E_ALL & ~E_USER_DEPRECATED` in your config/app.php.
src/Template.php:604 
Accessing `query` as a property will be removed in 4.0.0. Use request->getQuery() instead. - /Applications/MAMP/htdocs/my_app/vendor/twig/twig/src/Template.php, line: 604 You can disable deprecation warnings by setting `Error.errorLevel` to `E_ALL & ~E_USER_DEPRECATED` in your config/app.php.
@JeremyWinalist
Copy link
Author

Anyone else with this issue ?

@WyriHaximus
Copy link
Collaborator

Hey @JeremyWinalist this plugin doesn't use any of those methods. It's more likely that those methods are called within a template somewhere as all errors origin from within Twig it self.

@JeremyWinalist
Copy link
Author

Hey @WyriHaximus thanks for your answer that's right.

For anyone having same problem, I replaced this:
'?' : {'redirect' : _view.request.query['redirect']}
By this:
'?' : {'redirect' : _view.request.getQuery('redirect')}

@WyriHaximus
Copy link
Collaborator

Glad to hear this has been resolved 👍

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

No branches or pull requests

2 participants