CHANGE_vendor : ps
This commit is contained in:
parent
de46426a31
commit
668c08c80f
0
vendor/kint-php/kint/src/Parser/ArrayObjectPlugin.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Parser/ArrayObjectPlugin.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Parser/Base64Plugin.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Parser/Base64Plugin.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Parser/BinaryPlugin.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Parser/BinaryPlugin.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Parser/BlacklistPlugin.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Parser/BlacklistPlugin.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Parser/ClassMethodsPlugin.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Parser/ClassMethodsPlugin.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Parser/ClassStaticsPlugin.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Parser/ClassStaticsPlugin.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Parser/ClosurePlugin.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Parser/ClosurePlugin.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Parser/ColorPlugin.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Parser/ColorPlugin.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Parser/ConstructablePluginInterface.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Parser/ConstructablePluginInterface.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Parser/DOMDocumentPlugin.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Parser/DOMDocumentPlugin.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Parser/DateTimePlugin.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Parser/DateTimePlugin.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Parser/EnumPlugin.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Parser/EnumPlugin.php
vendored
Executable file → Normal file
10
vendor/kint-php/kint/src/Parser/FsPathPlugin.php
vendored
Executable file → Normal file
10
vendor/kint-php/kint/src/Parser/FsPathPlugin.php
vendored
Executable file → Normal file
@ -30,6 +30,7 @@ namespace Kint\Parser;
|
||||
use Kint\Zval\Representation\SplFileInfoRepresentation;
|
||||
use Kint\Zval\Value;
|
||||
use SplFileInfo;
|
||||
use TypeError;
|
||||
|
||||
class FsPathPlugin extends AbstractPlugin
|
||||
{
|
||||
@ -59,8 +60,13 @@ class FsPathPlugin extends AbstractPlugin
|
||||
return;
|
||||
}
|
||||
|
||||
if (!@\file_exists($var)) {
|
||||
return;
|
||||
try {
|
||||
if (!@\file_exists($var)) {
|
||||
return;
|
||||
}
|
||||
} catch (TypeError $e) {// @codeCoverageIgnore
|
||||
// Only possible in PHP 7
|
||||
return; // @codeCoverageIgnore
|
||||
}
|
||||
|
||||
if (\in_array($var, self::$blacklist, true)) {
|
||||
|
||||
0
vendor/kint-php/kint/src/Parser/IteratorPlugin.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Parser/IteratorPlugin.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Parser/JsonPlugin.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Parser/JsonPlugin.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Parser/MicrotimePlugin.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Parser/MicrotimePlugin.php
vendored
Executable file → Normal file
3
vendor/kint-php/kint/src/Parser/MysqliPlugin.php
vendored
Executable file → Normal file
3
vendor/kint-php/kint/src/Parser/MysqliPlugin.php
vendored
Executable file → Normal file
@ -105,7 +105,8 @@ class MysqliPlugin extends AbstractPlugin
|
||||
foreach ($o->value->contents as $key => $obj) {
|
||||
if (isset($this->connected_readable[$obj->name])) {
|
||||
if (!$connected) {
|
||||
continue;
|
||||
// No failed connections after PHP 8.1
|
||||
continue; // @codeCoverageIgnore
|
||||
}
|
||||
} elseif (isset($this->empty_readable[$obj->name])) {
|
||||
// No failed connections after PHP 8.1
|
||||
|
||||
0
vendor/kint-php/kint/src/Parser/Parser.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Parser/Parser.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Parser/PluginInterface.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Parser/PluginInterface.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Parser/ProxyPlugin.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Parser/ProxyPlugin.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Parser/SerializePlugin.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Parser/SerializePlugin.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Parser/SimpleXMLElementPlugin.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Parser/SimpleXMLElementPlugin.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Parser/SplFileInfoPlugin.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Parser/SplFileInfoPlugin.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Parser/SplObjectStoragePlugin.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Parser/SplObjectStoragePlugin.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Parser/StreamPlugin.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Parser/StreamPlugin.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Parser/TablePlugin.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Parser/TablePlugin.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Parser/ThrowablePlugin.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Parser/ThrowablePlugin.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Parser/TimestampPlugin.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Parser/TimestampPlugin.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Parser/ToStringPlugin.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Parser/ToStringPlugin.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Parser/TracePlugin.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Parser/TracePlugin.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Parser/XmlPlugin.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Parser/XmlPlugin.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Renderer/AbstractRenderer.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Renderer/AbstractRenderer.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Renderer/CliRenderer.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Renderer/CliRenderer.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Renderer/PlainRenderer.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Renderer/PlainRenderer.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Renderer/RendererInterface.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Renderer/RendererInterface.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Renderer/Rich/AbstractPlugin.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Renderer/Rich/AbstractPlugin.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Renderer/Rich/ArrayLimitPlugin.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Renderer/Rich/ArrayLimitPlugin.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Renderer/Rich/BinaryPlugin.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Renderer/Rich/BinaryPlugin.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Renderer/Rich/BlacklistPlugin.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Renderer/Rich/BlacklistPlugin.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Renderer/Rich/CallablePlugin.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Renderer/Rich/CallablePlugin.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Renderer/Rich/ClosurePlugin.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Renderer/Rich/ClosurePlugin.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Renderer/Rich/ColorPlugin.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Renderer/Rich/ColorPlugin.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Renderer/Rich/DepthLimitPlugin.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Renderer/Rich/DepthLimitPlugin.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Renderer/Rich/MethodDefinitionPlugin.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Renderer/Rich/MethodDefinitionPlugin.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Renderer/Rich/MicrotimePlugin.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Renderer/Rich/MicrotimePlugin.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Renderer/Rich/PluginInterface.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Renderer/Rich/PluginInterface.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Renderer/Rich/RecursionPlugin.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Renderer/Rich/RecursionPlugin.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Renderer/Rich/SimpleXMLElementPlugin.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Renderer/Rich/SimpleXMLElementPlugin.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Renderer/Rich/SourcePlugin.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Renderer/Rich/SourcePlugin.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Renderer/Rich/TabPluginInterface.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Renderer/Rich/TabPluginInterface.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Renderer/Rich/TablePlugin.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Renderer/Rich/TablePlugin.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Renderer/Rich/TimestampPlugin.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Renderer/Rich/TimestampPlugin.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Renderer/Rich/TraceFramePlugin.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Renderer/Rich/TraceFramePlugin.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Renderer/Rich/ValuePluginInterface.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Renderer/Rich/ValuePluginInterface.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Renderer/RichRenderer.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Renderer/RichRenderer.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Renderer/Text/AbstractPlugin.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Renderer/Text/AbstractPlugin.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Renderer/Text/ArrayLimitPlugin.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Renderer/Text/ArrayLimitPlugin.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Renderer/Text/BlacklistPlugin.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Renderer/Text/BlacklistPlugin.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Renderer/Text/DepthLimitPlugin.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Renderer/Text/DepthLimitPlugin.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Renderer/Text/EnumPlugin.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Renderer/Text/EnumPlugin.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Renderer/Text/MicrotimePlugin.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Renderer/Text/MicrotimePlugin.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Renderer/Text/PluginInterface.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Renderer/Text/PluginInterface.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Renderer/Text/RecursionPlugin.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Renderer/Text/RecursionPlugin.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Renderer/Text/TracePlugin.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Renderer/Text/TracePlugin.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Renderer/TextRenderer.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Renderer/TextRenderer.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Utils.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Utils.php
vendored
Executable file → Normal file
4
vendor/kint-php/kint/src/Zval/BlobValue.php
vendored
Executable file → Normal file
4
vendor/kint-php/kint/src/Zval/BlobValue.php
vendored
Executable file → Normal file
@ -182,7 +182,9 @@ class BlobValue extends Value
|
||||
if (\function_exists('iconv')) {
|
||||
foreach (self::$legacy_encodings as $encoding) {
|
||||
// Iconv detection works by triggering
|
||||
// "Detected an illegal character in input string" warnings
|
||||
// "Detected an illegal character in input string" notices
|
||||
// This notice does not become a TypeError with strict_types
|
||||
// so we don't have to wrap this in a try catch
|
||||
if (@\iconv($encoding, $encoding, $string) === $string) {
|
||||
return $encoding;
|
||||
}
|
||||
|
||||
0
vendor/kint-php/kint/src/Zval/ClosureValue.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Zval/ClosureValue.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Zval/DateTimeValue.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Zval/DateTimeValue.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Zval/EnumValue.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Zval/EnumValue.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Zval/InstanceValue.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Zval/InstanceValue.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Zval/MethodValue.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Zval/MethodValue.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Zval/ParameterHoldingTrait.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Zval/ParameterHoldingTrait.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Zval/ParameterValue.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Zval/ParameterValue.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Zval/Representation/ColorRepresentation.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Zval/Representation/ColorRepresentation.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Zval/Representation/MethodDefinitionRepresentation.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Zval/Representation/MethodDefinitionRepresentation.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Zval/Representation/MicrotimeRepresentation.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Zval/Representation/MicrotimeRepresentation.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Zval/Representation/Representation.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Zval/Representation/Representation.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Zval/Representation/SourceRepresentation.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Zval/Representation/SourceRepresentation.php
vendored
Executable file → Normal file
2
vendor/kint-php/kint/src/Zval/Representation/SplFileInfoRepresentation.php
vendored
Executable file → Normal file
2
vendor/kint-php/kint/src/Zval/Representation/SplFileInfoRepresentation.php
vendored
Executable file → Normal file
@ -76,7 +76,7 @@ class SplFileInfoRepresentation extends Representation
|
||||
}
|
||||
} catch (RuntimeException $e) {
|
||||
if (false === \strpos($e->getMessage(), ' open_basedir ')) {
|
||||
throw $e;
|
||||
throw $e; // @codeCoverageIgnore
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
0
vendor/kint-php/kint/src/Zval/ResourceValue.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Zval/ResourceValue.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Zval/SimpleXMLElementValue.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Zval/SimpleXMLElementValue.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Zval/StreamValue.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Zval/StreamValue.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Zval/ThrowableValue.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Zval/ThrowableValue.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Zval/TraceFrameValue.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Zval/TraceFrameValue.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Zval/TraceValue.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Zval/TraceValue.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Zval/Value.php
vendored
Executable file → Normal file
0
vendor/kint-php/kint/src/Zval/Value.php
vendored
Executable file → Normal file
0
vendor/nexusphp/cs-config/.editorconfig
vendored
Executable file → Normal file
0
vendor/nexusphp/cs-config/.editorconfig
vendored
Executable file → Normal file
0
vendor/nexusphp/cs-config/.gitignore
vendored
Executable file → Normal file
0
vendor/nexusphp/cs-config/.gitignore
vendored
Executable file → Normal file
15
vendor/nexusphp/cs-config/.php-cs-fixer.dist.php
vendored
Executable file → Normal file
15
vendor/nexusphp/cs-config/.php-cs-fixer.dist.php
vendored
Executable file → Normal file
@ -14,15 +14,13 @@ declare(strict_types=1);
|
||||
use Nexus\CsConfig\Factory;
|
||||
use Nexus\CsConfig\Fixer\Comment\NoCodeSeparatorCommentFixer;
|
||||
use Nexus\CsConfig\FixerGenerator;
|
||||
use Nexus\CsConfig\Ruleset\Nexus81;
|
||||
use Nexus\CsConfig\Ruleset\Nexus80;
|
||||
use PhpCsFixer\Finder;
|
||||
|
||||
$finder = Finder::create()
|
||||
->files()
|
||||
->in([
|
||||
__DIR__.'/src',
|
||||
__DIR__.'/tests',
|
||||
])
|
||||
->in(__DIR__)
|
||||
->exclude(['build'])
|
||||
->append([__FILE__])
|
||||
;
|
||||
|
||||
@ -38,9 +36,4 @@ $options = [
|
||||
],
|
||||
];
|
||||
|
||||
return Factory::create(new Nexus81(), $overrides, $options)->forLibrary(
|
||||
'Nexus CS Config',
|
||||
'John Paul E. Balandan, CPA',
|
||||
'paulbalandan@gmail.com',
|
||||
2020,
|
||||
);
|
||||
return Factory::create(new Nexus80(), $overrides, $options)->forLibrary('Nexus CS Config', 'John Paul E. Balandan, CPA', 'paulbalandan@gmail.com', 2020);
|
||||
|
||||
35
vendor/nexusphp/cs-config/CHANGELOG.md
vendored
Executable file → Normal file
35
vendor/nexusphp/cs-config/CHANGELOG.md
vendored
Executable file → Normal file
@ -5,41 +5,6 @@ All notable changes to this library will be documented in this file:
|
||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
|
||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||
|
||||
## [v3.22.1](https://github.com/NexusPHP/cs-config/compare/v3.22.0...v3.22.1) - 2024-03-24
|
||||
|
||||
- Allow phpunit v11
|
||||
- Remove deprecated option of `nullable_type_declaration_for_default_null_value`
|
||||
|
||||
## [v3.22.0](https://github.com/NexusPHP/cs-config/compare/v3.21.0...v3.22.0) - 2024-02-24
|
||||
|
||||
- Bump to php-cs-fixer v3.50
|
||||
- Update options for `no_superfluous_phpdoc_tags`
|
||||
- Enable `phpdoc_array_type`
|
||||
|
||||
## [v3.21.0](https://github.com/NexusPHP/cs-config/compare/v3.20.0...v3.21.0) - 2024-02-05
|
||||
|
||||
- Bump to php-cs-fixer v3.49
|
||||
- Add `string_implicit_slashes` fixer
|
||||
- Enable `phpdoc_list_type` fixer
|
||||
|
||||
## [v3.20.0](https://github.com/NexusPHP/cs-config/compare/v3.19.0...v3.20.0) - 2024-01-23
|
||||
|
||||
- Bump to php-cs-fixer v3.46
|
||||
- Enable `union_types` option for phpdoc_to fixers
|
||||
- Disable `numeric_literal_separator`
|
||||
- Enable `multiline_string_to_heredoc`
|
||||
- Disable `heredoc_closing_marker`
|
||||
- Enable `spacing` option and add more `tags` to `phpdoc_align`
|
||||
- Bump actions/cache from 3 to 4 (#4)
|
||||
|
||||
## [v3.19.0](https://github.com/NexusPHP/cs-config/compare/v3.18.0...v3.19.0) - 2023-12-29
|
||||
|
||||
- Bump minimum PHP version to PHP 8.1
|
||||
- Bump to php-cs-fixer v3.43
|
||||
- Run build on PHP 8.3
|
||||
- Bump to phpunit v10.5
|
||||
- Fix sample ruleset in README
|
||||
|
||||
## [v3.18.0](https://github.com/NexusPHP/cs-config/compare/v3.17.0...v3.18.0) - 2023-10-13
|
||||
|
||||
- Bump to php-cs-fixer v3.35
|
||||
|
||||
0
vendor/nexusphp/cs-config/LICENSE
vendored
Executable file → Normal file
0
vendor/nexusphp/cs-config/LICENSE
vendored
Executable file → Normal file
30
vendor/nexusphp/cs-config/README.md
vendored
Executable file → Normal file
30
vendor/nexusphp/cs-config/README.md
vendored
Executable file → Normal file
@ -31,9 +31,9 @@ then you should add it as a development-time dependency:
|
||||
<?php
|
||||
|
||||
use Nexus\CsConfig\Factory;
|
||||
use Nexus\CsConfig\Ruleset\Nexus82;
|
||||
use Nexus\CsConfig\Ruleset\Nexus73;
|
||||
|
||||
return Factory::create(new Nexus82())->forProjects();
|
||||
return Factory::create(new Nexus73())->forProjects();
|
||||
|
||||
```
|
||||
|
||||
@ -61,10 +61,10 @@ two optional arguments (the email address and starting year of license).
|
||||
<?php
|
||||
|
||||
use Nexus\CsConfig\Factory;
|
||||
use Nexus\CsConfig\Ruleset\Nexus82;
|
||||
use Nexus\CsConfig\Ruleset\Nexus73;
|
||||
|
||||
-return Factory::create(new Nexus82())->forProjects();
|
||||
+return Factory::create(new Nexus82())->forLibrary('My Library', 'John Doe', 'john@doe.com', 2020);
|
||||
-return Factory::create(new Nexus73())->forProjects();
|
||||
+return Factory::create(new Nexus73())->forLibrary('My Library', 'John Doe', 'john@doe.com', 2020);
|
||||
```
|
||||
|
||||
This setting will configure a license header similar to below:
|
||||
@ -93,10 +93,10 @@ these will not be shown on the license header allowing flexibility on the copyri
|
||||
<?php
|
||||
|
||||
use Nexus\CsConfig\Factory;
|
||||
use Nexus\CsConfig\Ruleset\Nexus82;
|
||||
use Nexus\CsConfig\Ruleset\Nexus73;
|
||||
|
||||
-return Factory::create(new Nexus82())->forProjects();
|
||||
+return Factory::create(new Nexus82())->forLibrary('My Library', 'John Doe');
|
||||
-return Factory::create(new Nexus73())->forProjects();
|
||||
+return Factory::create(new Nexus73())->forLibrary('My Library', 'John Doe');
|
||||
```
|
||||
|
||||
This will give the following license header:
|
||||
@ -124,10 +124,10 @@ If you feel that a specific rule in the ruleset is not appropriate for you, you
|
||||
<?php
|
||||
|
||||
use Nexus\CsConfig\Factory;
|
||||
use Nexus\CsConfig\Ruleset\Nexus82;
|
||||
use Nexus\CsConfig\Ruleset\Nexus73;
|
||||
|
||||
-return Factory::create(new Nexus82())->forProjects();
|
||||
+return Factory::create(new Nexus82(), [
|
||||
-return Factory::create(new Nexus73())->forProjects();
|
||||
+return Factory::create(new Nexus73(), [
|
||||
+ 'binary_operator_spaces' => false,
|
||||
+])->forProjects();
|
||||
|
||||
@ -159,10 +159,10 @@ containing your desired options.
|
||||
<?php
|
||||
|
||||
use Nexus\CsConfig\Factory;
|
||||
use Nexus\CsConfig\Ruleset\Nexus82;
|
||||
use Nexus\CsConfig\Ruleset\Nexus73;
|
||||
|
||||
-return Factory::create(new Nexus82())->forProjects();
|
||||
+return Factory::create(new Nexus82(), [], [
|
||||
-return Factory::create(new Nexus73())->forProjects();
|
||||
+return Factory::create(new Nexus73(), [], [
|
||||
+ 'usingCache' => false,
|
||||
+ 'hideProgress => true,
|
||||
+])->forProjects();
|
||||
@ -194,7 +194,7 @@ final class MyCompany extends AbstractRuleset
|
||||
'@PSR2' => true,
|
||||
...
|
||||
];
|
||||
$this->requiredPHPVersion = 80200;
|
||||
$this->requiredPHPVersion = 70400;
|
||||
$this->autoActivateIsRiskyAllowed = true;
|
||||
}
|
||||
}
|
||||
|
||||
8
vendor/nexusphp/cs-config/composer.json
vendored
Executable file → Normal file
8
vendor/nexusphp/cs-config/composer.json
vendored
Executable file → Normal file
@ -15,17 +15,17 @@
|
||||
"slack": "https://nexusphp.slack.com"
|
||||
},
|
||||
"require": {
|
||||
"php": "^8.1",
|
||||
"php": "^8.0.1",
|
||||
"ext-tokenizer": "*",
|
||||
"friendsofphp/php-cs-fixer": "^3.50"
|
||||
"friendsofphp/php-cs-fixer": "^3.35"
|
||||
},
|
||||
"require-dev": {
|
||||
"nexusphp/tachycardia": "^2.1",
|
||||
"nexusphp/tachycardia": "^1.4",
|
||||
"phpstan/extension-installer": "^1.3",
|
||||
"phpstan/phpstan": "^1.10",
|
||||
"phpstan/phpstan-phpunit": "^1.3",
|
||||
"phpstan/phpstan-strict-rules": "^1.5",
|
||||
"phpunit/phpunit": "^10.5 || ^11.0"
|
||||
"phpunit/phpunit": "^9.6"
|
||||
},
|
||||
"conflict": {
|
||||
"liaison/cs-config": "*"
|
||||
|
||||
47
vendor/nexusphp/cs-config/phpstan-baseline.php
vendored
Executable file → Normal file
47
vendor/nexusphp/cs-config/phpstan-baseline.php
vendored
Executable file → Normal file
@ -1,35 +1,44 @@
|
||||
<?php declare(strict_types = 1);
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
/**
|
||||
* This file is part of Nexus CS Config.
|
||||
*
|
||||
* (c) 2020 John Paul E. Balandan, CPA <paulbalandan@gmail.com>
|
||||
*
|
||||
* For the full copyright and license information, please view
|
||||
* the LICENSE file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
$ignoreErrors = [];
|
||||
$ignoreErrors[] = [
|
||||
'message' => '#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertSame\\(\\) with arguments "\\\\n", string and string will always evaluate to true\\.$#',
|
||||
'count' => 1,
|
||||
'path' => __DIR__ . '/src/Test/AbstractCustomFixerTestCase.php',
|
||||
'message' => '#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertSame\\(\\) with arguments "\\\\n", string and string will always evaluate to true\\.$#',
|
||||
'count' => 1,
|
||||
'path' => __DIR__.'/src/Test/AbstractCustomFixerTestCase.php',
|
||||
];
|
||||
$ignoreErrors[] = [
|
||||
'message' => '#^Method Nexus\\\\CsConfig\\\\Test\\\\AbstractCustomFixerTestCase\\:\\:getLinter\\(\\) should return PhpCsFixer\\\\Linter\\\\LinterInterface but returns mixed\\.$#',
|
||||
'count' => 1,
|
||||
'path' => __DIR__ . '/src/Test/AbstractCustomFixerTestCase.php',
|
||||
'message' => '#^Method Nexus\\\\CsConfig\\\\Test\\\\AbstractCustomFixerTestCase\\:\\:getLinter\\(\\) should return PhpCsFixer\\\\Linter\\\\LinterInterface but returns mixed\\.$#',
|
||||
'count' => 1,
|
||||
'path' => __DIR__.'/src/Test/AbstractCustomFixerTestCase.php',
|
||||
];
|
||||
$ignoreErrors[] = [
|
||||
'message' => '#^Method Nexus\\\\CsConfig\\\\Tests\\\\Fixer\\\\Comment\\\\NoCodeSeparatorCommentFixerTest\\:\\:provideFixCases\\(\\) return type has no value type specified in iterable type iterable\\.$#',
|
||||
'count' => 1,
|
||||
'path' => __DIR__ . '/tests/Fixer/Comment/NoCodeSeparatorCommentFixerTest.php',
|
||||
'message' => '#^Only numeric types are allowed in pre\\-increment, int\\<0, max\\>\\|false given\\.$#',
|
||||
'count' => 1,
|
||||
'path' => __DIR__.'/src/Test/AbstractCustomFixerTestCase.php',
|
||||
];
|
||||
$ignoreErrors[] = [
|
||||
'message' => '#^Method Nexus\\\\CsConfig\\\\Tests\\\\Fixer\\\\Comment\\\\SpaceAfterCommentStartFixerTest\\:\\:provideFixCases\\(\\) return type has no value type specified in iterable type iterable\\.$#',
|
||||
'count' => 1,
|
||||
'path' => __DIR__ . '/tests/Fixer/Comment/SpaceAfterCommentStartFixerTest.php',
|
||||
'message' => '#^Cannot access offset \'header\' on array\\<string, mixed\\>\\|bool\\.$#',
|
||||
'count' => 1,
|
||||
'path' => __DIR__.'/tests/FactoryTest.php',
|
||||
];
|
||||
$ignoreErrors[] = [
|
||||
'message' => '#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertEmpty\\(\\) with non\\-empty\\-array will always evaluate to false\\.$#',
|
||||
'count' => 1,
|
||||
'path' => __DIR__ . '/tests/Test/FixerProviderTest.php',
|
||||
'message' => '#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertEmpty\\(\\) with non\\-empty\\-array will always evaluate to false\\.$#',
|
||||
'count' => 1,
|
||||
'path' => __DIR__.'/tests/Test/FixerProviderTest.php',
|
||||
];
|
||||
$ignoreErrors[] = [
|
||||
'message' => '#^Method Nexus\\\\CsConfig\\\\Tests\\\\Test\\\\FixerProviderTest\\:\\:provideCreateMethodGivesNoDeprecatedBuiltInFixersCases\\(\\) return type has no value type specified in iterable type iterable\\.$#',
|
||||
'count' => 1,
|
||||
'path' => __DIR__ . '/tests/Test/FixerProviderTest.php',
|
||||
'message' => '#^Method \\S+Test\\:\\:\\S+ return type has no value type specified in iterable type iterable\\.$#',
|
||||
];
|
||||
|
||||
return ['parameters' => ['ignoreErrors' => $ignoreErrors]];
|
||||
|
||||
0
vendor/nexusphp/cs-config/phpstan.neon.dist
vendored
Executable file → Normal file
0
vendor/nexusphp/cs-config/phpstan.neon.dist
vendored
Executable file → Normal file
51
vendor/nexusphp/cs-config/phpunit.xml.dist
vendored
Executable file → Normal file
51
vendor/nexusphp/cs-config/phpunit.xml.dist
vendored
Executable file → Normal file
@ -2,35 +2,38 @@
|
||||
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
|
||||
bootstrap="vendor/autoload.php"
|
||||
cacheResultFile="build/phpunit/test-results"
|
||||
colors="true"
|
||||
executionOrder="random"
|
||||
beStrictAboutOutputDuringTests="true"
|
||||
columns="max"
|
||||
failOnRisky="true"
|
||||
failOnWarning="true"
|
||||
cacheDirectory="build/phpunit/cache"
|
||||
columns="max"
|
||||
requireCoverageMetadata="true"
|
||||
forceCoversAnnotation="true"
|
||||
beStrictAboutOutputDuringTests="true"
|
||||
beStrictAboutTodoAnnotatedTests="true"
|
||||
verbose="true"
|
||||
>
|
||||
<testsuites>
|
||||
<testsuite name="NexusPHP CS Config Test Suite">
|
||||
<directory suffix="Test.php">tests</directory>
|
||||
</testsuite>
|
||||
</testsuites>
|
||||
|
||||
<source>
|
||||
<include>
|
||||
<directory suffix=".php">src</directory>
|
||||
</include>
|
||||
</source>
|
||||
<testsuites>
|
||||
<testsuite name="NexusPHP CS Config Test Suite">
|
||||
<directory suffix="Test.php">tests</directory>
|
||||
</testsuite>
|
||||
</testsuites>
|
||||
|
||||
<coverage ignoreDeprecatedCodeUnits="true">
|
||||
<report>
|
||||
<clover outputFile="build/phpunit/logs/clover.xml"/>
|
||||
<html outputDirectory="build/phpunit/logs/html"/>
|
||||
</report>
|
||||
</coverage>
|
||||
<coverage cacheDirectory="build/phpunit/code-coverage"
|
||||
ignoreDeprecatedCodeUnits="true"
|
||||
processUncoveredFiles="true"
|
||||
>
|
||||
<include>
|
||||
<directory suffix=".php">src</directory>
|
||||
</include>
|
||||
|
||||
<extensions>
|
||||
<bootstrap class="Nexus\PHPUnit\Tachycardia\TachycardiaExtension" />
|
||||
</extensions>
|
||||
<report>
|
||||
<clover outputFile="build/phpunit/logs/clover.xml"/>
|
||||
<html outputDirectory="build/phpunit/logs/html"/>
|
||||
</report>
|
||||
</coverage>
|
||||
|
||||
<extensions>
|
||||
<extension class="Nexus\PHPUnit\Extension\Tachycardia" />
|
||||
</extensions>
|
||||
</phpunit>
|
||||
|
||||
0
vendor/nexusphp/cs-config/src/Factory.php
vendored
Executable file → Normal file
0
vendor/nexusphp/cs-config/src/Factory.php
vendored
Executable file → Normal file
3
vendor/nexusphp/cs-config/src/Fixer/AbstractCustomFixer.php
vendored
Executable file → Normal file
3
vendor/nexusphp/cs-config/src/Fixer/AbstractCustomFixer.php
vendored
Executable file → Normal file
@ -35,6 +35,9 @@ abstract class AbstractCustomFixer extends AbstractFixer
|
||||
return $namespace.'/'.Utils::camelCaseToUnderscore($name);
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function getName(): string
|
||||
{
|
||||
return self::name();
|
||||
|
||||
9
vendor/nexusphp/cs-config/src/Fixer/Comment/NoCodeSeparatorCommentFixer.php
vendored
Executable file → Normal file
9
vendor/nexusphp/cs-config/src/Fixer/Comment/NoCodeSeparatorCommentFixer.php
vendored
Executable file → Normal file
@ -25,6 +25,9 @@ use PhpCsFixer\Tokenizer\Tokens;
|
||||
*/
|
||||
final class NoCodeSeparatorCommentFixer extends AbstractCustomFixer
|
||||
{
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function getDefinition(): FixerDefinitionInterface
|
||||
{
|
||||
return new FixerDefinition(
|
||||
@ -44,6 +47,9 @@ final class NoCodeSeparatorCommentFixer extends AbstractCustomFixer
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function isCandidate(Tokens $tokens): bool
|
||||
{
|
||||
return $tokens->isTokenKindFound(T_COMMENT);
|
||||
@ -59,6 +65,9 @@ final class NoCodeSeparatorCommentFixer extends AbstractCustomFixer
|
||||
return 2;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
protected function applyFix(\SplFileInfo $file, Tokens $tokens): void
|
||||
{
|
||||
for ($index = 1, $count = $tokens->count(); $index < $count; ++$index) {
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user