Submit
Path:
~
/
/
proc
/
self
/
root
/
opt
/
psa
/
admin
/
plib
/
modules
/
wp-toolkit
/
vendor
/
robmorgan
/
phinx
/
src
/
Phinx
/
Config
/
File Content:
FeatureFlags.php
<?php /** * MIT License * For full license information, please view the LICENSE file that was distributed with this source code. */ namespace WPToolkitDependenciesIsolationPrefix\Phinx\Config; /** * Class to hold features flags to toggle breaking changes in Phinx. * * New flags should be added very sparingly. */ class FeatureFlags { /** * @var bool Should Phinx create unsigned primary keys by default? */ public static $unsignedPrimaryKeys = \true; /** * @var bool Should Phinx create columns NULL by default? */ public static $columnNullDefault = \true; /** * Set the feature flags from the `feature_flags` section of the overall * config. * * @param array $config The `feature_flags` section of the config */ public static function setFlagsFromConfig(array $config) : void { if (isset($config['unsigned_primary_keys'])) { self::$unsignedPrimaryKeys = (bool) $config['unsigned_primary_keys']; } if (isset($config['column_null_default'])) { self::$columnNullDefault = (bool) $config['column_null_default']; } } }
Submit
FILE
FOLDER
INFO
Name
Size
Permission
Action
Config.php
15074 bytes
0644
ConfigInterface.php
3874 bytes
0644
FeatureFlags.php
1158 bytes
0644
NamespaceAwareInterface.php
749 bytes
0644
NamespaceAwareTrait.php
1767 bytes
0644
N4ST4R_ID | Naxtarrr