Skip to content

Commit

Permalink
Drop PHP 7.2 and 7.3
Browse files Browse the repository at this point in the history
  • Loading branch information
dktapps committed May 18, 2021
1 parent 54d69f9 commit 03ab131
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
if: "!contains(github.event.head_commit.message, '[ci skip]')"
strategy:
matrix:
php: ['7.2', '7.3', '7.4', '8.0']
php: ['7.4', '8.0']
name: PHP ${{ matrix.php }}
steps:
- uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"type": "library",
"license": "LGPL-3.0",
"require": {
"php": "^7.2 || ^8.0"
"php": "^7.4 || ^8.0"
},
"require-dev": {
"phpstan/phpstan": "0.12.80",
Expand Down
3 changes: 1 addition & 2 deletions src/GlobalLogger.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ private function __construct(){
//NOOP
}

/** @var \Logger|null */
private static $logger = null;
private static ?\Logger $logger = null;

public static function get() : \Logger{
if(self::$logger === null){
Expand Down
6 changes: 2 additions & 4 deletions src/PrefixedLogger.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,8 @@

class PrefixedLogger extends SimpleLogger{

/** @var Logger */
private $delegate;
/** @var string */
private $prefix;
private Logger $delegate;
private string $prefix;

public function __construct(\Logger $delegate, string $prefix){
$this->delegate = $delegate;
Expand Down

0 comments on commit 03ab131

Please sign in to comment.