Skip to content

Commit

Permalink
Do not use the global keyword.
Browse files Browse the repository at this point in the history
  • Loading branch information
mducharme committed Jul 18, 2019
1 parent 1f5a5fb commit 30e9be2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tests/bootstrap.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php

global $autoloader;

/**
* Assigin the Composer autoloader to the global state.
*
Expand All @@ -11,4 +9,4 @@
*
* @var \Composer\Autoload\ClassLoader $autoloader
*/
$autoloader = require dirname(__DIR__) . '/vendor/autoload.php';
$GLOBALS['autoloader'] = require dirname(__DIR__).'/vendor/autoload.php';

0 comments on commit 30e9be2

Please sign in to comment.