Skip to content

[4.0] Enforced expected parameter type#19574

Closed
demis-palma wants to merge 1 commit intojoomla:4.0-devfrom
demis-palma:gettemplate-4
Closed

[4.0] Enforced expected parameter type#19574
demis-palma wants to merge 1 commit intojoomla:4.0-devfrom
demis-palma:gettemplate-4

Conversation

@demis-palma
Copy link
Copy Markdown
Contributor

@demis-palma demis-palma commented Feb 5, 2018

Summary of Changes

The method getTemplate() implemented in CMSApplication, SiteApplication and AdministratorApplication wants a bool as unique parameter.
Currently there are a few occurrences where a string is passed instead, which incidentally assumes the intended value (true) when implicitly converted to bool:
(bool)'template' → true

Testing Instructions

To be merged on code review.

Fixed on staging too.

@mbabker
Copy link
Copy Markdown
Contributor

mbabker commented Feb 5, 2018

FYI you don't need to do PRs for both 3.x (staging/3.9-dev) and 4.x (4.0-dev). Albeit slowly, stuff is getting merged from staging into both 3.9-dev and 4.0-dev branches, so if you fix an issue in one branch it'll get applied everywhere.

@demis-palma
Copy link
Copy Markdown
Contributor Author

I suspected something like this, but I wasn't sure because the patch is slightly different in the two branches.
Sorry for the mess and thanks for the information.

@zero-24
Copy link
Copy Markdown
Contributor

zero-24 commented Feb 7, 2018

IMO this here can be closed as the other PR should be merged in 4.0 too by updating 4.0 with staging.

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.

4 participants