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

EWPP-1146: Update test coverage for template prefixes. #28

Merged
merged 1 commit into from
Jun 21, 2021

Conversation

22Alexandra
Copy link
Contributor

No description provided.

Copy link
Member

@ademarco ademarco left a comment

Choose a reason for hiding this comment

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

I'll leave inline comments.

* Twig extension, defaults to ".html.twig".
*/
public function __construct($namespaces, $paths = [], $root = null, $prefix = 'twig-component-', $templatePrefix = '', $extension = '.html.twig')
public function __construct($namespaces, $paths = [], string $root = null, string $prefix = 'twig-component-', string $templatePrefix = '', string $extension = '.html.twig')
Copy link
Member

Choose a reason for hiding this comment

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

Let's not add string typing here and below, as we didn't do it anywhere else in the class.

*
* @dataProvider dataProvider
*/
public function testLoader($name, $expected, $prefix)
public function testLoader(string $name, string $expected, string $prefix, string $templatePrefix)
Copy link
Member

Choose a reason for hiding this comment

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

Same as above, let's not add typing.

@imanoleguskiza imanoleguskiza merged commit cd1fdae into 3.x Jun 21, 2021
@imanoleguskiza imanoleguskiza deleted the EWPP-1146 branch June 21, 2021 07:06
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