mirror of
https://github.com/composer/composer
synced 2025-05-09 16:42:57 +00:00
Backport validation support for composer-runtime-api (#8842)
Fixes #8841
This commit is contained in:
parent
ca25ff8b0d
commit
270c7c3262
2 changed files with 2 additions and 1 deletions
|
@ -27,7 +27,7 @@ use Symfony\Component\Process\ExecutableFinder;
|
||||||
*/
|
*/
|
||||||
class PlatformRepository extends ArrayRepository
|
class PlatformRepository extends ArrayRepository
|
||||||
{
|
{
|
||||||
const PLATFORM_PACKAGE_REGEX = '{^(?:php(?:-64bit|-ipv6|-zts|-debug)?|hhvm|(?:ext|lib)-[a-z0-9](?:[_.-]?[a-z0-9]+)*|composer-plugin-api)$}iD';
|
const PLATFORM_PACKAGE_REGEX = '{^(?:php(?:-64bit|-ipv6|-zts|-debug)?|hhvm|(?:ext|lib)-[a-z0-9](?:[_.-]?[a-z0-9]+)*|composer-(?:plugin|runtime)-api)$}iD';
|
||||||
|
|
||||||
private $versionParser;
|
private $versionParser;
|
||||||
|
|
||||||
|
|
|
@ -86,6 +86,7 @@ class ValidatingArrayLoaderTest extends TestCase
|
||||||
'a/b' => '1.*',
|
'a/b' => '1.*',
|
||||||
'b/c' => '~2',
|
'b/c' => '~2',
|
||||||
'example' => '>2.0-dev,<2.4-dev',
|
'example' => '>2.0-dev,<2.4-dev',
|
||||||
|
'composer-runtime-api' => '*',
|
||||||
),
|
),
|
||||||
'require-dev' => array(
|
'require-dev' => array(
|
||||||
'a/b' => '1.*',
|
'a/b' => '1.*',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue