Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F7441505
MigrationBuilder.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
MigrationBuilder.php
View Options
<?php
declare
(
strict_types
=
1
);
/*
* This file is part of PHPUnit.
*
* (c) Sebastian Bergmann <sebastian@phpunit.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace
PHPUnit\TextUI\XmlConfiguration
;
use
function
version_compare
;
/**
* @internal This class is not covered by the backward compatibility promise for PHPUnit
*/
final
class
MigrationBuilder
{
private
const
AVAILABLE_MIGRATIONS
=
[
'8.5'
=>
[
RemoveLogTypes
::
class
,
],
'9.2'
=>
[
RemoveCacheTokensAttribute
::
class
,
IntroduceCoverageElement
::
class
,
MoveAttributesFromRootToCoverage
::
class
,
MoveAttributesFromFilterWhitelistToCoverage
::
class
,
MoveWhitelistIncludesToCoverage
::
class
,
MoveWhitelistExcludesToCoverage
::
class
,
RemoveEmptyFilter
::
class
,
CoverageCloverToReport
::
class
,
CoverageCrap4jToReport
::
class
,
CoverageHtmlToReport
::
class
,
CoveragePhpToReport
::
class
,
CoverageTextToReport
::
class
,
CoverageXmlToReport
::
class
,
ConvertLogTypes
::
class
,
UpdateSchemaLocationTo93
::
class
,
],
];
/**
* @throws MigrationBuilderException
*/
public
function
build
(
string
$fromVersion
):
array
{
$stack
=
[];
foreach
(
self
::
AVAILABLE_MIGRATIONS
as
$version
=>
$migrations
)
{
if
(
version_compare
(
$version
,
$fromVersion
,
'<'
))
{
continue
;
}
foreach
(
$migrations
as
$migration
)
{
$stack
[]
=
new
$migration
;
}
}
return
$stack
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Nov 22, 16:04 (13 h, 13 m ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
a1/c0/889a9054fa546d38b07951cb2c45
Default Alt Text
MigrationBuilder.php (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment