-
-
Notifications
You must be signed in to change notification settings - Fork 412
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #491 from Seldaek/php72
Bump requirement to PHP 7.2 and PHPStan level 8
- Loading branch information
Showing
124 changed files
with
843 additions
and
1,477 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,8 +13,8 @@ jobs: | |
strategy: | ||
matrix: | ||
php-version: | ||
- "5.3" | ||
- "8.0" | ||
- "7.2" | ||
- "latest" | ||
|
||
steps: | ||
- name: "Checkout" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
parameters: | ||
level: 5 | ||
level: 8 | ||
paths: | ||
- src | ||
- tests | ||
excludes_analyse: | ||
- tests/Composer/Installers/Test/PolyfillTestCase.php | ||
ignoreErrors: | ||
- '~Test::[a-zA-Z0-9]+Provider\(\) return type~' | ||
|
||
includes: | ||
- vendor/phpstan/phpstan-phpunit/extension.neon |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,29 @@ | ||
<?php | ||
|
||
namespace Composer\Installers; | ||
|
||
class AglInstaller extends BaseInstaller | ||
{ | ||
/** @var array<string, string> */ | ||
protected $locations = array( | ||
'module' => 'More/{$name}/', | ||
); | ||
|
||
/** | ||
* Format package name to CamelCase | ||
*/ | ||
public function inflectPackageVars($vars) | ||
public function inflectPackageVars(array $vars): array | ||
{ | ||
$vars['name'] = preg_replace_callback('/(?:^|_|-)(.?)/', function ($matches) { | ||
$name = preg_replace_callback('/(?:^|_|-)(.?)/', function ($matches) { | ||
return strtoupper($matches[1]); | ||
}, $vars['name']); | ||
|
||
if (null === $name) { | ||
throw new \RuntimeException('Failed to run preg_replace_callback: '.preg_last_error()); | ||
} | ||
|
||
$vars['name'] = $name; | ||
|
||
return $vars; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.