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

Fix type error in TinyMCEHelper::beforeRender() #60

Closed
wants to merge 3 commits into from
Closed

Fix type error in TinyMCEHelper::beforeRender() #60

wants to merge 3 commits into from

Conversation

umer936
Copy link

@umer936 umer936 commented Jan 10, 2024

Fix for:
[TypeError] TinyMCE\View\Helper\TinyMCEHelper::beforeRender(): Argument #1 ($viewFile) must be of type TinyMCE\View\Helper\Event, Cake\Event\Event given, called in /web/GenericConference/vendor/cakephp/cakephp/src/Event/EventManager.php on line 329 in /web/GenericConference/vendor/cakedc/tiny-mce/src/View/Helper/TinyMCEHelper.php on line 125

Fix for: 
[TypeError] TinyMCE\View\Helper\TinyMCEHelper::beforeRender(): Argument #1 ($viewFile) must be of type TinyMCE\View\Helper\Event, Cake\Event\Event given, called in /web/GenericConference/vendor/cakephp/cakephp/src/Event/EventManager.php on line 329 in /web/GenericConference/vendor/cakedc/tiny-mce/src/View/Helper/TinyMCEHelper.php on line 125
@arusinowski
Copy link
Member

@umer936 thank you for your contribution, please check the results of the test workflows and update the failing test case

@umer936
Copy link
Author

umer936 commented Jan 10, 2024

I was just editing inline on GitHub.dev so I'm not sure if this actually fixes the tests. beforeRender() should run on it's own though when methods are called, right? so it shouldn't need to be in the testcase?

@arusinowski
Copy link
Member

I was just editing inline on GitHub.dev so I'm not sure if this actually fixes the tests. beforeRender() should run on it's own though when methods are called, right? so it shouldn't need to be in the testcase?

Hi @umer936 , beforeRender need to be called to test the feature. I see that this bug breaks the way how the plugin work so i will fix it ASAP, thank you for finding this issue.

@umer936 umer936 closed this Jan 13, 2024
@umer936 umer936 deleted the patch-1 branch January 13, 2024 19:08
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.

2 participants