Skip to content

Commit

Permalink
Prefix certain global functions so PHP can optimize them (see contao/…
Browse files Browse the repository at this point in the history
  • Loading branch information
leofeyer committed Sep 25, 2017
1 parent b2e7d25 commit ec868ba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/EventListener/InsertTagsListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public function onReplaceInsertTags(string $tag)
$elements = explode('::', $tag);
$key = strtolower($elements[0]);

if (!in_array($key, $this->supportedTags, true)) {
if (!\in_array($key, $this->supportedTags, true)) {
return false;
}

Expand Down
2 changes: 1 addition & 1 deletion tests/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
};

// PhpStorm fix (see https://www.drupal.org/node/2597814)
if (!defined('PHPUNIT_COMPOSER_INSTALL')) {
if (!\defined('PHPUNIT_COMPOSER_INSTALL')) {
define('PHPUNIT_COMPOSER_INSTALL', __DIR__.'/../vendor/autoload.php');
}

Expand Down

0 comments on commit ec868ba

Please sign in to comment.