Skip to content

Commit 1a655cb

Browse files
committed
Add bootstrap to maintain old root namespace alias.
Since we don't want to introduce a BC Break on the first day, we must maintain the existence of the LeanPHP namespace even if we moved forward.
1 parent c6f76b0 commit 1a655cb

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed

composer.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,10 @@
5858
"autoload": {
5959
"psr-4": {
6060
"FriendsOfPhpSpec\\PhpSpec\\CodeCoverage\\": "src/"
61-
}
61+
},
62+
"files": [
63+
"src/bootstrap.php"
64+
]
6265
},
6366
"minimum-stability": "stable",
6467
"scripts": {

src/bootstrap.php

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
/**
6+
* This file is part of the friends-of-phpspec/phpspec-code-coverage package.
7+
*
8+
* @author shulard <s.hulard@chstudio.fr>
9+
* @license MIT
10+
*
11+
* For the full copyright and license information, please see the LICENSE file
12+
* that was distributed with this source code.
13+
*/
14+
use FriendsOfPhpSpec\PhpSpec\CodeCoverage\CodeCoverageExtension;
15+
16+
\class_alias(
17+
CodeCoverageExtension::class,
18+
'LeanPHP\PhpSpec\CodeCoverage\CodeCoverageExtension'
19+
);

0 commit comments

Comments
 (0)