File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ public function getFilter($name)
2020 * @psalm-suppress InternalMethod
2121 */
2222 $ defaultFilters = array_keys (parent ::getFilters ());
23- $ isDefault = isset ($ defaultFilters [$ name ]) || $ this -> listContainsSubstring ( $ defaultFilters , $ name ) ;
23+ $ isDefault = isset ($ defaultFilters [$ name ]);
2424
2525 if ($ isDefault ) { // don't attempt to stub twig's builtin filter
2626 /** @psalm-suppress InternalMethod */
@@ -42,7 +42,7 @@ public function getFunction($name)
4242 * @psalm-suppress InternalMethod
4343 */
4444 $ defaultFunctions = array_keys (parent ::getFunctions ());
45- $ isDefault = isset ($ defaultFunctions [$ name ]) || $ this -> listContainsSubstring ( $ defaultFunctions , $ name ) ;
45+ $ isDefault = isset ($ defaultFunctions [$ name ]);
4646
4747 if ($ isDefault ) { // don't attempt to stub twig's builtin function
4848 /** @psalm-suppress InternalMethod */
You can’t perform that action at this time.
0 commit comments