From 668c08c80f53e53e380bb8f6e1b7b0df86476d79 Mon Sep 17 00:00:00 2001 From: VE10-Sanjeev Date: Tue, 4 Jun 2024 11:42:44 +0000 Subject: [PATCH] CHANGE_vendor : ps --- .../kint/src/Parser/ArrayObjectPlugin.php | 0 .../kint-php/kint/src/Parser/Base64Plugin.php | 0 .../kint-php/kint/src/Parser/BinaryPlugin.php | 0 .../kint/src/Parser/BlacklistPlugin.php | 0 .../kint/src/Parser/ClassMethodsPlugin.php | 0 .../kint/src/Parser/ClassStaticsPlugin.php | 0 .../kint/src/Parser/ClosurePlugin.php | 0 .../kint-php/kint/src/Parser/ColorPlugin.php | 0 .../Parser/ConstructablePluginInterface.php | 0 .../kint/src/Parser/DOMDocumentPlugin.php | 0 .../kint/src/Parser/DateTimePlugin.php | 0 .../kint-php/kint/src/Parser/EnumPlugin.php | 0 .../kint-php/kint/src/Parser/FsPathPlugin.php | 10 +- .../kint/src/Parser/IteratorPlugin.php | 0 .../kint-php/kint/src/Parser/JsonPlugin.php | 0 .../kint/src/Parser/MicrotimePlugin.php | 0 .../kint-php/kint/src/Parser/MysqliPlugin.php | 3 +- vendor/kint-php/kint/src/Parser/Parser.php | 0 .../kint/src/Parser/PluginInterface.php | 0 .../kint-php/kint/src/Parser/ProxyPlugin.php | 0 .../kint/src/Parser/SerializePlugin.php | 0 .../src/Parser/SimpleXMLElementPlugin.php | 0 .../kint/src/Parser/SplFileInfoPlugin.php | 0 .../src/Parser/SplObjectStoragePlugin.php | 0 .../kint-php/kint/src/Parser/StreamPlugin.php | 0 .../kint-php/kint/src/Parser/TablePlugin.php | 0 .../kint/src/Parser/ThrowablePlugin.php | 0 .../kint/src/Parser/TimestampPlugin.php | 0 .../kint/src/Parser/ToStringPlugin.php | 0 .../kint-php/kint/src/Parser/TracePlugin.php | 0 vendor/kint-php/kint/src/Parser/XmlPlugin.php | 0 .../kint/src/Renderer/AbstractRenderer.php | 0 .../kint/src/Renderer/CliRenderer.php | 0 .../kint/src/Renderer/PlainRenderer.php | 0 .../kint/src/Renderer/RendererInterface.php | 0 .../kint/src/Renderer/Rich/AbstractPlugin.php | 0 .../src/Renderer/Rich/ArrayLimitPlugin.php | 0 .../kint/src/Renderer/Rich/BinaryPlugin.php | 0 .../src/Renderer/Rich/BlacklistPlugin.php | 0 .../kint/src/Renderer/Rich/CallablePlugin.php | 0 .../kint/src/Renderer/Rich/ClosurePlugin.php | 0 .../kint/src/Renderer/Rich/ColorPlugin.php | 0 .../src/Renderer/Rich/DepthLimitPlugin.php | 0 .../Renderer/Rich/MethodDefinitionPlugin.php | 0 .../src/Renderer/Rich/MicrotimePlugin.php | 0 .../src/Renderer/Rich/PluginInterface.php | 0 .../src/Renderer/Rich/RecursionPlugin.php | 0 .../Renderer/Rich/SimpleXMLElementPlugin.php | 0 .../kint/src/Renderer/Rich/SourcePlugin.php | 0 .../src/Renderer/Rich/TabPluginInterface.php | 0 .../kint/src/Renderer/Rich/TablePlugin.php | 0 .../src/Renderer/Rich/TimestampPlugin.php | 0 .../src/Renderer/Rich/TraceFramePlugin.php | 0 .../Renderer/Rich/ValuePluginInterface.php | 0 .../kint/src/Renderer/RichRenderer.php | 0 .../kint/src/Renderer/Text/AbstractPlugin.php | 0 .../src/Renderer/Text/ArrayLimitPlugin.php | 0 .../src/Renderer/Text/BlacklistPlugin.php | 0 .../src/Renderer/Text/DepthLimitPlugin.php | 0 .../kint/src/Renderer/Text/EnumPlugin.php | 0 .../src/Renderer/Text/MicrotimePlugin.php | 0 .../src/Renderer/Text/PluginInterface.php | 0 .../src/Renderer/Text/RecursionPlugin.php | 0 .../kint/src/Renderer/Text/TracePlugin.php | 0 .../kint/src/Renderer/TextRenderer.php | 0 vendor/kint-php/kint/src/Utils.php | 0 vendor/kint-php/kint/src/Zval/BlobValue.php | 4 +- .../kint-php/kint/src/Zval/ClosureValue.php | 0 .../kint-php/kint/src/Zval/DateTimeValue.php | 0 vendor/kint-php/kint/src/Zval/EnumValue.php | 0 .../kint-php/kint/src/Zval/InstanceValue.php | 0 vendor/kint-php/kint/src/Zval/MethodValue.php | 0 .../kint/src/Zval/ParameterHoldingTrait.php | 0 .../kint-php/kint/src/Zval/ParameterValue.php | 0 .../Representation/ColorRepresentation.php | 0 .../MethodDefinitionRepresentation.php | 0 .../MicrotimeRepresentation.php | 0 .../Zval/Representation/Representation.php | 0 .../Representation/SourceRepresentation.php | 0 .../SplFileInfoRepresentation.php | 2 +- .../kint-php/kint/src/Zval/ResourceValue.php | 0 .../kint/src/Zval/SimpleXMLElementValue.php | 0 vendor/kint-php/kint/src/Zval/StreamValue.php | 0 .../kint-php/kint/src/Zval/ThrowableValue.php | 0 .../kint/src/Zval/TraceFrameValue.php | 0 vendor/kint-php/kint/src/Zval/TraceValue.php | 0 vendor/kint-php/kint/src/Zval/Value.php | 0 vendor/nexusphp/cs-config/.editorconfig | 0 vendor/nexusphp/cs-config/.gitignore | 0 .../nexusphp/cs-config/.php-cs-fixer.dist.php | 15 +-- vendor/nexusphp/cs-config/CHANGELOG.md | 35 ------- vendor/nexusphp/cs-config/LICENSE | 0 vendor/nexusphp/cs-config/README.md | 30 +++--- vendor/nexusphp/cs-config/composer.json | 8 +- .../nexusphp/cs-config/phpstan-baseline.php | 47 +++++---- vendor/nexusphp/cs-config/phpstan.neon.dist | 0 vendor/nexusphp/cs-config/phpunit.xml.dist | 51 +++++----- vendor/nexusphp/cs-config/src/Factory.php | 0 .../src/Fixer/AbstractCustomFixer.php | 3 + .../Comment/NoCodeSeparatorCommentFixer.php | 9 ++ .../Comment/SpaceAfterCommentStartFixer.php | 12 +++ .../nexusphp/cs-config/src/FixerGenerator.php | 0 .../cs-config/src/Ruleset/AbstractRuleset.php | 14 ++- .../cs-config/src/Ruleset/Nexus80.php | 81 ++++------------ .../cs-config/src/Ruleset/Nexus81.php | 81 ++++------------ .../cs-config/src/Ruleset/Nexus82.php | 81 ++++------------ .../src/Ruleset/RulesetInterface.php | 2 +- .../src/Test/AbstractCustomFixerTestCase.php | 4 +- .../src/Test/AbstractRulesetTestCase.php | 22 ++--- .../cs-config/src/Test/FixerProvider.php | 6 +- vendor/symfony/console/Application.php | 22 ++--- .../symfony/console/Attribute/AsCommand.php | 6 ++ vendor/symfony/console/CHANGELOG.md | 5 + .../console/CI/GithubActionReporter.php | 0 vendor/symfony/console/Color.php | 0 vendor/symfony/console/Command/Command.php | 16 ++- .../console/Command/CompleteCommand.php | 0 .../console/Command/DumpCompletionCommand.php | 0 .../symfony/console/Command/HelpCommand.php | 0 .../symfony/console/Command/LazyCommand.php | 12 ++- .../symfony/console/Command/ListCommand.php | 0 .../symfony/console/Command/LockableTrait.php | 16 ++- .../Command/SignalableCommandInterface.php | 0 .../console/Command/TraceableCommand.php | 0 .../CommandLoader/CommandLoaderInterface.php | 0 .../CommandLoader/ContainerCommandLoader.php | 11 +-- .../CommandLoader/FactoryCommandLoader.php | 8 +- .../console/Completion/CompletionInput.php | 0 .../Completion/CompletionSuggestions.php | 0 .../Output/BashCompletionOutput.php | 0 .../Output/CompletionOutputInterface.php | 0 .../Output/FishCompletionOutput.php | 9 +- .../Completion/Output/ZshCompletionOutput.php | 0 .../symfony/console/Completion/Suggestion.php | 2 +- vendor/symfony/console/ConsoleEvents.php | 0 vendor/symfony/console/Cursor.php | 8 +- .../DataCollector/CommandDataCollector.php | 0 vendor/symfony/console/Debug/CliRequest.php | 0 .../AddConsoleCommandPass.php | 0 .../Descriptor/ApplicationDescription.php | 13 +-- .../symfony/console/Descriptor/Descriptor.php | 0 .../Descriptor/DescriptorInterface.php | 0 .../console/Descriptor/JsonDescriptor.php | 0 .../console/Descriptor/MarkdownDescriptor.php | 0 .../Descriptor/ReStructuredTextDescriptor.php | 2 +- .../console/Descriptor/TextDescriptor.php | 0 .../console/Descriptor/XmlDescriptor.php | 2 +- .../console/Event/ConsoleCommandEvent.php | 0 .../console/Event/ConsoleErrorEvent.php | 11 ++- vendor/symfony/console/Event/ConsoleEvent.php | 15 +-- .../console/Event/ConsoleSignalEvent.php | 14 +-- .../console/Event/ConsoleTerminateEvent.php | 0 .../console/EventListener/ErrorListener.php | 8 +- .../Exception/CommandNotFoundException.php | 12 +-- .../console/Exception/ExceptionInterface.php | 0 .../Exception/InvalidArgumentException.php | 0 .../Exception/InvalidOptionException.php | 0 .../console/Exception/LogicException.php | 0 .../Exception/MissingInputException.php | 0 .../Exception/NamespaceNotFoundException.php | 0 .../Exception/RunCommandFailedException.php | 0 .../console/Exception/RuntimeException.php | 0 .../console/Formatter/NullOutputFormatter.php | 0 .../Formatter/NullOutputFormatterStyle.php | 0 .../console/Formatter/OutputFormatter.php | 0 .../Formatter/OutputFormatterInterface.php | 0 .../Formatter/OutputFormatterStyle.php | 0 .../OutputFormatterStyleInterface.php | 0 .../Formatter/OutputFormatterStyleStack.php | 0 .../WrappableOutputFormatterInterface.php | 0 .../console/Helper/DebugFormatterHelper.php | 0 .../console/Helper/DescriptorHelper.php | 0 vendor/symfony/console/Helper/Dumper.php | 14 +-- .../console/Helper/FormatterHelper.php | 0 vendor/symfony/console/Helper/Helper.php | 0 .../console/Helper/HelperInterface.php | 0 vendor/symfony/console/Helper/HelperSet.php | 0 .../console/Helper/InputAwareHelper.php | 0 .../symfony/console/Helper/OutputWrapper.php | 2 +- .../symfony/console/Helper/ProcessHelper.php | 0 vendor/symfony/console/Helper/ProgressBar.php | 59 ++++++++--- .../console/Helper/ProgressIndicator.php | 12 +-- .../symfony/console/Helper/QuestionHelper.php | 19 ++-- .../console/Helper/SymfonyQuestionHelper.php | 0 vendor/symfony/console/Helper/Table.php | 14 ++- vendor/symfony/console/Helper/TableCell.php | 9 +- .../symfony/console/Helper/TableCellStyle.php | 2 +- vendor/symfony/console/Helper/TableRows.php | 8 +- .../symfony/console/Helper/TableSeparator.php | 0 vendor/symfony/console/Helper/TableStyle.php | 0 vendor/symfony/console/Input/ArgvInput.php | 32 ++++++ vendor/symfony/console/Input/ArrayInput.php | 10 +- vendor/symfony/console/Input/Input.php | 0 .../symfony/console/Input/InputArgument.php | 39 +++++--- .../console/Input/InputAwareInterface.php | 0 .../symfony/console/Input/InputDefinition.php | 0 .../symfony/console/Input/InputInterface.php | 0 vendor/symfony/console/Input/InputOption.php | 37 ++++--- .../Input/StreamableInputInterface.php | 0 vendor/symfony/console/Input/StringInput.php | 2 + vendor/symfony/console/LICENSE | 0 .../symfony/console/Logger/ConsoleLogger.php | 9 +- .../console/Messenger/RunCommandContext.php | 0 .../console/Messenger/RunCommandMessage.php | 0 .../Messenger/RunCommandMessageHandler.php | 5 +- .../symfony/console/Output/AnsiColorMode.php | 4 +- .../symfony/console/Output/BufferedOutput.php | 0 .../symfony/console/Output/ConsoleOutput.php | 0 .../console/Output/ConsoleOutputInterface.php | 0 .../console/Output/ConsoleSectionOutput.php | 2 +- vendor/symfony/console/Output/NullOutput.php | 0 vendor/symfony/console/Output/Output.php | 0 .../console/Output/OutputInterface.php | 0 .../symfony/console/Output/StreamOutput.php | 0 .../console/Output/TrimmedBufferOutput.php | 0 .../console/Question/ChoiceQuestion.php | 9 +- .../console/Question/ConfirmationQuestion.php | 10 +- vendor/symfony/console/Question/Question.php | 10 +- vendor/symfony/console/README.md | 13 +-- .../symfony/console/Resources/completion.bash | 0 .../symfony/console/Resources/completion.fish | 6 +- .../symfony/console/Resources/completion.zsh | 0 .../console/SignalRegistry/SignalMap.php | 0 .../console/SignalRegistry/SignalRegistry.php | 0 .../console/SingleCommandApplication.php | 0 vendor/symfony/console/Style/OutputStyle.php | 8 +- .../symfony/console/Style/StyleInterface.php | 0 vendor/symfony/console/Style/SymfonyStyle.php | 11 +-- vendor/symfony/console/Terminal.php | 0 .../console/Tester/ApplicationTester.php | 8 +- .../Tester/CommandCompletionTester.php | 8 +- .../symfony/console/Tester/CommandTester.php | 8 +- .../Tester/Constraint/CommandIsSuccessful.php | 0 vendor/symfony/console/Tester/TesterTrait.php | 0 vendor/symfony/console/composer.json | 0 .../deprecation-contracts/CHANGELOG.md | 0 vendor/symfony/deprecation-contracts/LICENSE | 0 .../symfony/deprecation-contracts/README.md | 0 .../deprecation-contracts/composer.json | 2 +- .../deprecation-contracts/function.php | 0 .../event-dispatcher-contracts/CHANGELOG.md | 0 .../event-dispatcher-contracts/Event.php | 0 .../EventDispatcherInterface.php | 0 .../event-dispatcher-contracts/LICENSE | 0 .../event-dispatcher-contracts/README.md | 0 .../event-dispatcher-contracts/composer.json | 2 +- .../Attribute/AsEventListener.php | 6 ++ vendor/symfony/event-dispatcher/CHANGELOG.md | 0 .../Debug/TraceableEventDispatcher.php | 17 ++-- .../Debug/WrappedListener.php | 17 ++-- .../AddEventAliasesPass.php | 8 +- .../RegisterListenersPass.php | 0 .../event-dispatcher/EventDispatcher.php | 0 .../EventDispatcherInterface.php | 0 .../EventSubscriberInterface.php | 0 .../symfony/event-dispatcher/GenericEvent.php | 11 +-- .../ImmutableEventDispatcher.php | 8 +- vendor/symfony/event-dispatcher/LICENSE | 0 vendor/symfony/event-dispatcher/README.md | 0 vendor/symfony/event-dispatcher/composer.json | 0 vendor/symfony/filesystem/CHANGELOG.md | 5 + .../Exception/ExceptionInterface.php | 0 .../Exception/FileNotFoundException.php | 0 .../filesystem/Exception/IOException.php | 12 +-- .../Exception/IOExceptionInterface.php | 0 .../Exception/InvalidArgumentException.php | 0 .../filesystem/Exception/RuntimeException.php | 0 vendor/symfony/filesystem/Filesystem.php | 21 +++- vendor/symfony/filesystem/LICENSE | 0 vendor/symfony/filesystem/Path.php | 10 +- vendor/symfony/filesystem/README.md | 0 vendor/symfony/filesystem/composer.json | 3 + vendor/symfony/finder/CHANGELOG.md | 0 .../symfony/finder/Comparator/Comparator.php | 8 +- .../finder/Comparator/DateComparator.php | 0 .../finder/Comparator/NumberComparator.php | 0 .../Exception/AccessDeniedException.php | 0 .../Exception/DirectoryNotFoundException.php | 0 vendor/symfony/finder/Finder.php | 40 ++++---- vendor/symfony/finder/Gitignore.php | 0 vendor/symfony/finder/Glob.php | 0 .../finder/Iterator/CustomFilterIterator.php | 0 .../Iterator/DateRangeFilterIterator.php | 0 .../Iterator/DepthRangeFilterIterator.php | 0 .../ExcludeDirectoryFilterIterator.php | 0 .../Iterator/FileTypeFilterIterator.php | 0 .../Iterator/FilecontentFilterIterator.php | 0 .../Iterator/FilenameFilterIterator.php | 0 .../symfony/finder/Iterator/LazyIterator.php | 0 .../Iterator/MultiplePcreFilterIterator.php | 0 .../finder/Iterator/PathFilterIterator.php | 0 .../Iterator/RecursiveDirectoryIterator.php | 0 .../Iterator/SizeRangeFilterIterator.php | 0 .../finder/Iterator/SortableIterator.php | 0 .../Iterator/VcsIgnoredFilterIterator.php | 6 +- vendor/symfony/finder/LICENSE | 0 vendor/symfony/finder/README.md | 0 vendor/symfony/finder/SplFileInfo.php | 12 +-- vendor/symfony/finder/composer.json | 0 vendor/symfony/options-resolver/CHANGELOG.md | 0 .../Debug/OptionsResolverIntrospector.php | 0 .../Exception/AccessException.php | 0 .../Exception/ExceptionInterface.php | 0 .../Exception/InvalidArgumentException.php | 0 .../Exception/InvalidOptionsException.php | 0 .../Exception/MissingOptionsException.php | 0 .../Exception/NoConfigurationException.php | 0 .../Exception/NoSuchOptionException.php | 0 .../Exception/OptionDefinitionException.php | 0 .../Exception/UndefinedOptionsException.php | 0 vendor/symfony/options-resolver/LICENSE | 0 .../options-resolver/OptionConfigurator.php | 11 +-- vendor/symfony/options-resolver/Options.php | 0 .../options-resolver/OptionsResolver.php | 0 vendor/symfony/options-resolver/README.md | 0 vendor/symfony/options-resolver/composer.json | 0 vendor/symfony/process/CHANGELOG.md | 5 + .../process/Exception/ExceptionInterface.php | 0 .../Exception/InvalidArgumentException.php | 0 .../process/Exception/LogicException.php | 0 .../Exception/ProcessFailedException.php | 0 .../Exception/ProcessSignaledException.php | 0 .../Exception/ProcessTimedOutException.php | 0 .../Exception/RunProcessFailedException.php | 0 .../process/Exception/RuntimeException.php | 0 vendor/symfony/process/ExecutableFinder.php | 0 vendor/symfony/process/InputStream.php | 0 vendor/symfony/process/LICENSE | 0 .../process/Messenger/RunProcessContext.php | 4 +- .../process/Messenger/RunProcessMessage.php | 0 .../Messenger/RunProcessMessageHandler.php | 0 .../symfony/process/PhpExecutableFinder.php | 0 vendor/symfony/process/PhpProcess.php | 0 vendor/symfony/process/PhpSubprocess.php | 0 .../symfony/process/Pipes/AbstractPipes.php | 0 .../symfony/process/Pipes/PipesInterface.php | 0 vendor/symfony/process/Pipes/UnixPipes.php | 0 vendor/symfony/process/Pipes/WindowsPipes.php | 0 vendor/symfony/process/Process.php | 97 +++++++++++++++---- vendor/symfony/process/ProcessUtils.php | 0 vendor/symfony/process/README.md | 0 vendor/symfony/process/composer.json | 0 .../service-contracts/Attribute/Required.php | 0 .../Attribute/SubscribedService.php | 4 +- vendor/symfony/service-contracts/CHANGELOG.md | 0 vendor/symfony/service-contracts/LICENSE | 0 vendor/symfony/service-contracts/README.md | 0 .../service-contracts/ResetInterface.php | 0 .../service-contracts/ServiceLocatorTrait.php | 0 .../ServiceProviderInterface.php | 0 .../ServiceSubscriberInterface.php | 0 .../ServiceSubscriberTrait.php | 16 ++- .../Test/ServiceLocatorTest.php | 0 .../Test/ServiceLocatorTestCase.php | 16 +-- .../symfony/service-contracts/composer.json | 5 +- vendor/symfony/stopwatch/CHANGELOG.md | 0 vendor/symfony/stopwatch/LICENSE | 0 vendor/symfony/stopwatch/README.md | 4 +- vendor/symfony/stopwatch/Section.php | 10 +- vendor/symfony/stopwatch/Stopwatch.php | 8 +- vendor/symfony/stopwatch/StopwatchEvent.php | 12 ++- vendor/symfony/stopwatch/StopwatchPeriod.php | 0 vendor/symfony/stopwatch/composer.json | 0 vendor/symfony/string/AbstractString.php | 0 .../symfony/string/AbstractUnicodeString.php | 76 ++++++++++++++- vendor/symfony/string/ByteString.php | 5 + vendor/symfony/string/CHANGELOG.md | 5 + vendor/symfony/string/CodePointString.php | 0 .../string/Exception/ExceptionInterface.php | 0 .../Exception/InvalidArgumentException.php | 0 .../string/Exception/RuntimeException.php | 0 .../string/Inflector/EnglishInflector.php | 6 ++ .../string/Inflector/FrenchInflector.php | 0 .../string/Inflector/InflectorInterface.php | 0 vendor/symfony/string/LICENSE | 0 vendor/symfony/string/LazyString.php | 2 +- vendor/symfony/string/README.md | 0 .../Resources/data/wcswidth_table_wide.php | 0 .../Resources/data/wcswidth_table_zero.php | 0 vendor/symfony/string/Resources/functions.php | 0 .../symfony/string/Slugger/AsciiSlugger.php | 12 +-- .../string/Slugger/SluggerInterface.php | 0 vendor/symfony/string/UnicodeString.php | 0 vendor/symfony/string/composer.json | 3 +- 384 files changed, 845 insertions(+), 726 deletions(-) mode change 100755 => 100644 vendor/kint-php/kint/src/Parser/ArrayObjectPlugin.php mode change 100755 => 100644 vendor/kint-php/kint/src/Parser/Base64Plugin.php mode change 100755 => 100644 vendor/kint-php/kint/src/Parser/BinaryPlugin.php mode change 100755 => 100644 vendor/kint-php/kint/src/Parser/BlacklistPlugin.php mode change 100755 => 100644 vendor/kint-php/kint/src/Parser/ClassMethodsPlugin.php mode change 100755 => 100644 vendor/kint-php/kint/src/Parser/ClassStaticsPlugin.php mode change 100755 => 100644 vendor/kint-php/kint/src/Parser/ClosurePlugin.php mode change 100755 => 100644 vendor/kint-php/kint/src/Parser/ColorPlugin.php mode change 100755 => 100644 vendor/kint-php/kint/src/Parser/ConstructablePluginInterface.php mode change 100755 => 100644 vendor/kint-php/kint/src/Parser/DOMDocumentPlugin.php mode change 100755 => 100644 vendor/kint-php/kint/src/Parser/DateTimePlugin.php mode change 100755 => 100644 vendor/kint-php/kint/src/Parser/EnumPlugin.php mode change 100755 => 100644 vendor/kint-php/kint/src/Parser/FsPathPlugin.php mode change 100755 => 100644 vendor/kint-php/kint/src/Parser/IteratorPlugin.php mode change 100755 => 100644 vendor/kint-php/kint/src/Parser/JsonPlugin.php mode change 100755 => 100644 vendor/kint-php/kint/src/Parser/MicrotimePlugin.php mode change 100755 => 100644 vendor/kint-php/kint/src/Parser/MysqliPlugin.php mode change 100755 => 100644 vendor/kint-php/kint/src/Parser/Parser.php mode change 100755 => 100644 vendor/kint-php/kint/src/Parser/PluginInterface.php mode change 100755 => 100644 vendor/kint-php/kint/src/Parser/ProxyPlugin.php mode change 100755 => 100644 vendor/kint-php/kint/src/Parser/SerializePlugin.php mode change 100755 => 100644 vendor/kint-php/kint/src/Parser/SimpleXMLElementPlugin.php mode change 100755 => 100644 vendor/kint-php/kint/src/Parser/SplFileInfoPlugin.php mode change 100755 => 100644 vendor/kint-php/kint/src/Parser/SplObjectStoragePlugin.php mode change 100755 => 100644 vendor/kint-php/kint/src/Parser/StreamPlugin.php mode change 100755 => 100644 vendor/kint-php/kint/src/Parser/TablePlugin.php mode change 100755 => 100644 vendor/kint-php/kint/src/Parser/ThrowablePlugin.php mode change 100755 => 100644 vendor/kint-php/kint/src/Parser/TimestampPlugin.php mode change 100755 => 100644 vendor/kint-php/kint/src/Parser/ToStringPlugin.php mode change 100755 => 100644 vendor/kint-php/kint/src/Parser/TracePlugin.php mode change 100755 => 100644 vendor/kint-php/kint/src/Parser/XmlPlugin.php mode change 100755 => 100644 vendor/kint-php/kint/src/Renderer/AbstractRenderer.php mode change 100755 => 100644 vendor/kint-php/kint/src/Renderer/CliRenderer.php mode change 100755 => 100644 vendor/kint-php/kint/src/Renderer/PlainRenderer.php mode change 100755 => 100644 vendor/kint-php/kint/src/Renderer/RendererInterface.php mode change 100755 => 100644 vendor/kint-php/kint/src/Renderer/Rich/AbstractPlugin.php mode change 100755 => 100644 vendor/kint-php/kint/src/Renderer/Rich/ArrayLimitPlugin.php mode change 100755 => 100644 vendor/kint-php/kint/src/Renderer/Rich/BinaryPlugin.php mode change 100755 => 100644 vendor/kint-php/kint/src/Renderer/Rich/BlacklistPlugin.php mode change 100755 => 100644 vendor/kint-php/kint/src/Renderer/Rich/CallablePlugin.php mode change 100755 => 100644 vendor/kint-php/kint/src/Renderer/Rich/ClosurePlugin.php mode change 100755 => 100644 vendor/kint-php/kint/src/Renderer/Rich/ColorPlugin.php mode change 100755 => 100644 vendor/kint-php/kint/src/Renderer/Rich/DepthLimitPlugin.php mode change 100755 => 100644 vendor/kint-php/kint/src/Renderer/Rich/MethodDefinitionPlugin.php mode change 100755 => 100644 vendor/kint-php/kint/src/Renderer/Rich/MicrotimePlugin.php mode change 100755 => 100644 vendor/kint-php/kint/src/Renderer/Rich/PluginInterface.php mode change 100755 => 100644 vendor/kint-php/kint/src/Renderer/Rich/RecursionPlugin.php mode change 100755 => 100644 vendor/kint-php/kint/src/Renderer/Rich/SimpleXMLElementPlugin.php mode change 100755 => 100644 vendor/kint-php/kint/src/Renderer/Rich/SourcePlugin.php mode change 100755 => 100644 vendor/kint-php/kint/src/Renderer/Rich/TabPluginInterface.php mode change 100755 => 100644 vendor/kint-php/kint/src/Renderer/Rich/TablePlugin.php mode change 100755 => 100644 vendor/kint-php/kint/src/Renderer/Rich/TimestampPlugin.php mode change 100755 => 100644 vendor/kint-php/kint/src/Renderer/Rich/TraceFramePlugin.php mode change 100755 => 100644 vendor/kint-php/kint/src/Renderer/Rich/ValuePluginInterface.php mode change 100755 => 100644 vendor/kint-php/kint/src/Renderer/RichRenderer.php mode change 100755 => 100644 vendor/kint-php/kint/src/Renderer/Text/AbstractPlugin.php mode change 100755 => 100644 vendor/kint-php/kint/src/Renderer/Text/ArrayLimitPlugin.php mode change 100755 => 100644 vendor/kint-php/kint/src/Renderer/Text/BlacklistPlugin.php mode change 100755 => 100644 vendor/kint-php/kint/src/Renderer/Text/DepthLimitPlugin.php mode change 100755 => 100644 vendor/kint-php/kint/src/Renderer/Text/EnumPlugin.php mode change 100755 => 100644 vendor/kint-php/kint/src/Renderer/Text/MicrotimePlugin.php mode change 100755 => 100644 vendor/kint-php/kint/src/Renderer/Text/PluginInterface.php mode change 100755 => 100644 vendor/kint-php/kint/src/Renderer/Text/RecursionPlugin.php mode change 100755 => 100644 vendor/kint-php/kint/src/Renderer/Text/TracePlugin.php mode change 100755 => 100644 vendor/kint-php/kint/src/Renderer/TextRenderer.php mode change 100755 => 100644 vendor/kint-php/kint/src/Utils.php mode change 100755 => 100644 vendor/kint-php/kint/src/Zval/BlobValue.php mode change 100755 => 100644 vendor/kint-php/kint/src/Zval/ClosureValue.php mode change 100755 => 100644 vendor/kint-php/kint/src/Zval/DateTimeValue.php mode change 100755 => 100644 vendor/kint-php/kint/src/Zval/EnumValue.php mode change 100755 => 100644 vendor/kint-php/kint/src/Zval/InstanceValue.php mode change 100755 => 100644 vendor/kint-php/kint/src/Zval/MethodValue.php mode change 100755 => 100644 vendor/kint-php/kint/src/Zval/ParameterHoldingTrait.php mode change 100755 => 100644 vendor/kint-php/kint/src/Zval/ParameterValue.php mode change 100755 => 100644 vendor/kint-php/kint/src/Zval/Representation/ColorRepresentation.php mode change 100755 => 100644 vendor/kint-php/kint/src/Zval/Representation/MethodDefinitionRepresentation.php mode change 100755 => 100644 vendor/kint-php/kint/src/Zval/Representation/MicrotimeRepresentation.php mode change 100755 => 100644 vendor/kint-php/kint/src/Zval/Representation/Representation.php mode change 100755 => 100644 vendor/kint-php/kint/src/Zval/Representation/SourceRepresentation.php mode change 100755 => 100644 vendor/kint-php/kint/src/Zval/Representation/SplFileInfoRepresentation.php mode change 100755 => 100644 vendor/kint-php/kint/src/Zval/ResourceValue.php mode change 100755 => 100644 vendor/kint-php/kint/src/Zval/SimpleXMLElementValue.php mode change 100755 => 100644 vendor/kint-php/kint/src/Zval/StreamValue.php mode change 100755 => 100644 vendor/kint-php/kint/src/Zval/ThrowableValue.php mode change 100755 => 100644 vendor/kint-php/kint/src/Zval/TraceFrameValue.php mode change 100755 => 100644 vendor/kint-php/kint/src/Zval/TraceValue.php mode change 100755 => 100644 vendor/kint-php/kint/src/Zval/Value.php mode change 100755 => 100644 vendor/nexusphp/cs-config/.editorconfig mode change 100755 => 100644 vendor/nexusphp/cs-config/.gitignore mode change 100755 => 100644 vendor/nexusphp/cs-config/.php-cs-fixer.dist.php mode change 100755 => 100644 vendor/nexusphp/cs-config/CHANGELOG.md mode change 100755 => 100644 vendor/nexusphp/cs-config/LICENSE mode change 100755 => 100644 vendor/nexusphp/cs-config/README.md mode change 100755 => 100644 vendor/nexusphp/cs-config/composer.json mode change 100755 => 100644 vendor/nexusphp/cs-config/phpstan-baseline.php mode change 100755 => 100644 vendor/nexusphp/cs-config/phpstan.neon.dist mode change 100755 => 100644 vendor/nexusphp/cs-config/phpunit.xml.dist mode change 100755 => 100644 vendor/nexusphp/cs-config/src/Factory.php mode change 100755 => 100644 vendor/nexusphp/cs-config/src/Fixer/AbstractCustomFixer.php mode change 100755 => 100644 vendor/nexusphp/cs-config/src/Fixer/Comment/NoCodeSeparatorCommentFixer.php mode change 100755 => 100644 vendor/nexusphp/cs-config/src/Fixer/Comment/SpaceAfterCommentStartFixer.php mode change 100755 => 100644 vendor/nexusphp/cs-config/src/FixerGenerator.php mode change 100755 => 100644 vendor/nexusphp/cs-config/src/Ruleset/AbstractRuleset.php mode change 100755 => 100644 vendor/nexusphp/cs-config/src/Ruleset/Nexus80.php mode change 100755 => 100644 vendor/nexusphp/cs-config/src/Ruleset/Nexus81.php mode change 100755 => 100644 vendor/nexusphp/cs-config/src/Ruleset/Nexus82.php mode change 100755 => 100644 vendor/nexusphp/cs-config/src/Ruleset/RulesetInterface.php mode change 100755 => 100644 vendor/nexusphp/cs-config/src/Test/AbstractCustomFixerTestCase.php mode change 100755 => 100644 vendor/nexusphp/cs-config/src/Test/AbstractRulesetTestCase.php mode change 100755 => 100644 vendor/nexusphp/cs-config/src/Test/FixerProvider.php mode change 100755 => 100644 vendor/symfony/console/Application.php mode change 100755 => 100644 vendor/symfony/console/Attribute/AsCommand.php mode change 100755 => 100644 vendor/symfony/console/CHANGELOG.md mode change 100755 => 100644 vendor/symfony/console/CI/GithubActionReporter.php mode change 100755 => 100644 vendor/symfony/console/Color.php mode change 100755 => 100644 vendor/symfony/console/Command/Command.php mode change 100755 => 100644 vendor/symfony/console/Command/CompleteCommand.php mode change 100755 => 100644 vendor/symfony/console/Command/DumpCompletionCommand.php mode change 100755 => 100644 vendor/symfony/console/Command/HelpCommand.php mode change 100755 => 100644 vendor/symfony/console/Command/LazyCommand.php mode change 100755 => 100644 vendor/symfony/console/Command/ListCommand.php mode change 100755 => 100644 vendor/symfony/console/Command/LockableTrait.php mode change 100755 => 100644 vendor/symfony/console/Command/SignalableCommandInterface.php mode change 100755 => 100644 vendor/symfony/console/Command/TraceableCommand.php mode change 100755 => 100644 vendor/symfony/console/CommandLoader/CommandLoaderInterface.php mode change 100755 => 100644 vendor/symfony/console/CommandLoader/ContainerCommandLoader.php mode change 100755 => 100644 vendor/symfony/console/CommandLoader/FactoryCommandLoader.php mode change 100755 => 100644 vendor/symfony/console/Completion/CompletionInput.php mode change 100755 => 100644 vendor/symfony/console/Completion/CompletionSuggestions.php mode change 100755 => 100644 vendor/symfony/console/Completion/Output/BashCompletionOutput.php mode change 100755 => 100644 vendor/symfony/console/Completion/Output/CompletionOutputInterface.php mode change 100755 => 100644 vendor/symfony/console/Completion/Output/FishCompletionOutput.php mode change 100755 => 100644 vendor/symfony/console/Completion/Output/ZshCompletionOutput.php mode change 100755 => 100644 vendor/symfony/console/Completion/Suggestion.php mode change 100755 => 100644 vendor/symfony/console/ConsoleEvents.php mode change 100755 => 100644 vendor/symfony/console/Cursor.php mode change 100755 => 100644 vendor/symfony/console/DataCollector/CommandDataCollector.php mode change 100755 => 100644 vendor/symfony/console/Debug/CliRequest.php mode change 100755 => 100644 vendor/symfony/console/DependencyInjection/AddConsoleCommandPass.php mode change 100755 => 100644 vendor/symfony/console/Descriptor/ApplicationDescription.php mode change 100755 => 100644 vendor/symfony/console/Descriptor/Descriptor.php mode change 100755 => 100644 vendor/symfony/console/Descriptor/DescriptorInterface.php mode change 100755 => 100644 vendor/symfony/console/Descriptor/JsonDescriptor.php mode change 100755 => 100644 vendor/symfony/console/Descriptor/MarkdownDescriptor.php mode change 100755 => 100644 vendor/symfony/console/Descriptor/ReStructuredTextDescriptor.php mode change 100755 => 100644 vendor/symfony/console/Descriptor/TextDescriptor.php mode change 100755 => 100644 vendor/symfony/console/Descriptor/XmlDescriptor.php mode change 100755 => 100644 vendor/symfony/console/Event/ConsoleCommandEvent.php mode change 100755 => 100644 vendor/symfony/console/Event/ConsoleErrorEvent.php mode change 100755 => 100644 vendor/symfony/console/Event/ConsoleEvent.php mode change 100755 => 100644 vendor/symfony/console/Event/ConsoleSignalEvent.php mode change 100755 => 100644 vendor/symfony/console/Event/ConsoleTerminateEvent.php mode change 100755 => 100644 vendor/symfony/console/EventListener/ErrorListener.php mode change 100755 => 100644 vendor/symfony/console/Exception/CommandNotFoundException.php mode change 100755 => 100644 vendor/symfony/console/Exception/ExceptionInterface.php mode change 100755 => 100644 vendor/symfony/console/Exception/InvalidArgumentException.php mode change 100755 => 100644 vendor/symfony/console/Exception/InvalidOptionException.php mode change 100755 => 100644 vendor/symfony/console/Exception/LogicException.php mode change 100755 => 100644 vendor/symfony/console/Exception/MissingInputException.php mode change 100755 => 100644 vendor/symfony/console/Exception/NamespaceNotFoundException.php mode change 100755 => 100644 vendor/symfony/console/Exception/RunCommandFailedException.php mode change 100755 => 100644 vendor/symfony/console/Exception/RuntimeException.php mode change 100755 => 100644 vendor/symfony/console/Formatter/NullOutputFormatter.php mode change 100755 => 100644 vendor/symfony/console/Formatter/NullOutputFormatterStyle.php mode change 100755 => 100644 vendor/symfony/console/Formatter/OutputFormatter.php mode change 100755 => 100644 vendor/symfony/console/Formatter/OutputFormatterInterface.php mode change 100755 => 100644 vendor/symfony/console/Formatter/OutputFormatterStyle.php mode change 100755 => 100644 vendor/symfony/console/Formatter/OutputFormatterStyleInterface.php mode change 100755 => 100644 vendor/symfony/console/Formatter/OutputFormatterStyleStack.php mode change 100755 => 100644 vendor/symfony/console/Formatter/WrappableOutputFormatterInterface.php mode change 100755 => 100644 vendor/symfony/console/Helper/DebugFormatterHelper.php mode change 100755 => 100644 vendor/symfony/console/Helper/DescriptorHelper.php mode change 100755 => 100644 vendor/symfony/console/Helper/Dumper.php mode change 100755 => 100644 vendor/symfony/console/Helper/FormatterHelper.php mode change 100755 => 100644 vendor/symfony/console/Helper/Helper.php mode change 100755 => 100644 vendor/symfony/console/Helper/HelperInterface.php mode change 100755 => 100644 vendor/symfony/console/Helper/HelperSet.php mode change 100755 => 100644 vendor/symfony/console/Helper/InputAwareHelper.php mode change 100755 => 100644 vendor/symfony/console/Helper/OutputWrapper.php mode change 100755 => 100644 vendor/symfony/console/Helper/ProcessHelper.php mode change 100755 => 100644 vendor/symfony/console/Helper/ProgressBar.php mode change 100755 => 100644 vendor/symfony/console/Helper/ProgressIndicator.php mode change 100755 => 100644 vendor/symfony/console/Helper/QuestionHelper.php mode change 100755 => 100644 vendor/symfony/console/Helper/SymfonyQuestionHelper.php mode change 100755 => 100644 vendor/symfony/console/Helper/Table.php mode change 100755 => 100644 vendor/symfony/console/Helper/TableCell.php mode change 100755 => 100644 vendor/symfony/console/Helper/TableCellStyle.php mode change 100755 => 100644 vendor/symfony/console/Helper/TableRows.php mode change 100755 => 100644 vendor/symfony/console/Helper/TableSeparator.php mode change 100755 => 100644 vendor/symfony/console/Helper/TableStyle.php mode change 100755 => 100644 vendor/symfony/console/Input/ArgvInput.php mode change 100755 => 100644 vendor/symfony/console/Input/ArrayInput.php mode change 100755 => 100644 vendor/symfony/console/Input/Input.php mode change 100755 => 100644 vendor/symfony/console/Input/InputArgument.php mode change 100755 => 100644 vendor/symfony/console/Input/InputAwareInterface.php mode change 100755 => 100644 vendor/symfony/console/Input/InputDefinition.php mode change 100755 => 100644 vendor/symfony/console/Input/InputInterface.php mode change 100755 => 100644 vendor/symfony/console/Input/InputOption.php mode change 100755 => 100644 vendor/symfony/console/Input/StreamableInputInterface.php mode change 100755 => 100644 vendor/symfony/console/Input/StringInput.php mode change 100755 => 100644 vendor/symfony/console/LICENSE mode change 100755 => 100644 vendor/symfony/console/Logger/ConsoleLogger.php mode change 100755 => 100644 vendor/symfony/console/Messenger/RunCommandContext.php mode change 100755 => 100644 vendor/symfony/console/Messenger/RunCommandMessage.php mode change 100755 => 100644 vendor/symfony/console/Messenger/RunCommandMessageHandler.php mode change 100755 => 100644 vendor/symfony/console/Output/AnsiColorMode.php mode change 100755 => 100644 vendor/symfony/console/Output/BufferedOutput.php mode change 100755 => 100644 vendor/symfony/console/Output/ConsoleOutput.php mode change 100755 => 100644 vendor/symfony/console/Output/ConsoleOutputInterface.php mode change 100755 => 100644 vendor/symfony/console/Output/ConsoleSectionOutput.php mode change 100755 => 100644 vendor/symfony/console/Output/NullOutput.php mode change 100755 => 100644 vendor/symfony/console/Output/Output.php mode change 100755 => 100644 vendor/symfony/console/Output/OutputInterface.php mode change 100755 => 100644 vendor/symfony/console/Output/StreamOutput.php mode change 100755 => 100644 vendor/symfony/console/Output/TrimmedBufferOutput.php mode change 100755 => 100644 vendor/symfony/console/Question/ChoiceQuestion.php mode change 100755 => 100644 vendor/symfony/console/Question/ConfirmationQuestion.php mode change 100755 => 100644 vendor/symfony/console/Question/Question.php mode change 100755 => 100644 vendor/symfony/console/README.md mode change 100755 => 100644 vendor/symfony/console/Resources/completion.bash mode change 100755 => 100644 vendor/symfony/console/Resources/completion.fish mode change 100755 => 100644 vendor/symfony/console/Resources/completion.zsh mode change 100755 => 100644 vendor/symfony/console/SignalRegistry/SignalMap.php mode change 100755 => 100644 vendor/symfony/console/SignalRegistry/SignalRegistry.php mode change 100755 => 100644 vendor/symfony/console/SingleCommandApplication.php mode change 100755 => 100644 vendor/symfony/console/Style/OutputStyle.php mode change 100755 => 100644 vendor/symfony/console/Style/StyleInterface.php mode change 100755 => 100644 vendor/symfony/console/Style/SymfonyStyle.php mode change 100755 => 100644 vendor/symfony/console/Terminal.php mode change 100755 => 100644 vendor/symfony/console/Tester/ApplicationTester.php mode change 100755 => 100644 vendor/symfony/console/Tester/CommandCompletionTester.php mode change 100755 => 100644 vendor/symfony/console/Tester/CommandTester.php mode change 100755 => 100644 vendor/symfony/console/Tester/Constraint/CommandIsSuccessful.php mode change 100755 => 100644 vendor/symfony/console/Tester/TesterTrait.php mode change 100755 => 100644 vendor/symfony/console/composer.json mode change 100755 => 100644 vendor/symfony/deprecation-contracts/CHANGELOG.md mode change 100755 => 100644 vendor/symfony/deprecation-contracts/LICENSE mode change 100755 => 100644 vendor/symfony/deprecation-contracts/README.md mode change 100755 => 100644 vendor/symfony/deprecation-contracts/composer.json mode change 100755 => 100644 vendor/symfony/deprecation-contracts/function.php mode change 100755 => 100644 vendor/symfony/event-dispatcher-contracts/CHANGELOG.md mode change 100755 => 100644 vendor/symfony/event-dispatcher-contracts/Event.php mode change 100755 => 100644 vendor/symfony/event-dispatcher-contracts/EventDispatcherInterface.php mode change 100755 => 100644 vendor/symfony/event-dispatcher-contracts/LICENSE mode change 100755 => 100644 vendor/symfony/event-dispatcher-contracts/README.md mode change 100755 => 100644 vendor/symfony/event-dispatcher-contracts/composer.json mode change 100755 => 100644 vendor/symfony/event-dispatcher/Attribute/AsEventListener.php mode change 100755 => 100644 vendor/symfony/event-dispatcher/CHANGELOG.md mode change 100755 => 100644 vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php mode change 100755 => 100644 vendor/symfony/event-dispatcher/Debug/WrappedListener.php mode change 100755 => 100644 vendor/symfony/event-dispatcher/DependencyInjection/AddEventAliasesPass.php mode change 100755 => 100644 vendor/symfony/event-dispatcher/DependencyInjection/RegisterListenersPass.php mode change 100755 => 100644 vendor/symfony/event-dispatcher/EventDispatcher.php mode change 100755 => 100644 vendor/symfony/event-dispatcher/EventDispatcherInterface.php mode change 100755 => 100644 vendor/symfony/event-dispatcher/EventSubscriberInterface.php mode change 100755 => 100644 vendor/symfony/event-dispatcher/GenericEvent.php mode change 100755 => 100644 vendor/symfony/event-dispatcher/ImmutableEventDispatcher.php mode change 100755 => 100644 vendor/symfony/event-dispatcher/LICENSE mode change 100755 => 100644 vendor/symfony/event-dispatcher/README.md mode change 100755 => 100644 vendor/symfony/event-dispatcher/composer.json mode change 100755 => 100644 vendor/symfony/filesystem/CHANGELOG.md mode change 100755 => 100644 vendor/symfony/filesystem/Exception/ExceptionInterface.php mode change 100755 => 100644 vendor/symfony/filesystem/Exception/FileNotFoundException.php mode change 100755 => 100644 vendor/symfony/filesystem/Exception/IOException.php mode change 100755 => 100644 vendor/symfony/filesystem/Exception/IOExceptionInterface.php mode change 100755 => 100644 vendor/symfony/filesystem/Exception/InvalidArgumentException.php mode change 100755 => 100644 vendor/symfony/filesystem/Exception/RuntimeException.php mode change 100755 => 100644 vendor/symfony/filesystem/Filesystem.php mode change 100755 => 100644 vendor/symfony/filesystem/LICENSE mode change 100755 => 100644 vendor/symfony/filesystem/Path.php mode change 100755 => 100644 vendor/symfony/filesystem/README.md mode change 100755 => 100644 vendor/symfony/filesystem/composer.json mode change 100755 => 100644 vendor/symfony/finder/CHANGELOG.md mode change 100755 => 100644 vendor/symfony/finder/Comparator/Comparator.php mode change 100755 => 100644 vendor/symfony/finder/Comparator/DateComparator.php mode change 100755 => 100644 vendor/symfony/finder/Comparator/NumberComparator.php mode change 100755 => 100644 vendor/symfony/finder/Exception/AccessDeniedException.php mode change 100755 => 100644 vendor/symfony/finder/Exception/DirectoryNotFoundException.php mode change 100755 => 100644 vendor/symfony/finder/Finder.php mode change 100755 => 100644 vendor/symfony/finder/Gitignore.php mode change 100755 => 100644 vendor/symfony/finder/Glob.php mode change 100755 => 100644 vendor/symfony/finder/Iterator/CustomFilterIterator.php mode change 100755 => 100644 vendor/symfony/finder/Iterator/DateRangeFilterIterator.php mode change 100755 => 100644 vendor/symfony/finder/Iterator/DepthRangeFilterIterator.php mode change 100755 => 100644 vendor/symfony/finder/Iterator/ExcludeDirectoryFilterIterator.php mode change 100755 => 100644 vendor/symfony/finder/Iterator/FileTypeFilterIterator.php mode change 100755 => 100644 vendor/symfony/finder/Iterator/FilecontentFilterIterator.php mode change 100755 => 100644 vendor/symfony/finder/Iterator/FilenameFilterIterator.php mode change 100755 => 100644 vendor/symfony/finder/Iterator/LazyIterator.php mode change 100755 => 100644 vendor/symfony/finder/Iterator/MultiplePcreFilterIterator.php mode change 100755 => 100644 vendor/symfony/finder/Iterator/PathFilterIterator.php mode change 100755 => 100644 vendor/symfony/finder/Iterator/RecursiveDirectoryIterator.php mode change 100755 => 100644 vendor/symfony/finder/Iterator/SizeRangeFilterIterator.php mode change 100755 => 100644 vendor/symfony/finder/Iterator/SortableIterator.php mode change 100755 => 100644 vendor/symfony/finder/Iterator/VcsIgnoredFilterIterator.php mode change 100755 => 100644 vendor/symfony/finder/LICENSE mode change 100755 => 100644 vendor/symfony/finder/README.md mode change 100755 => 100644 vendor/symfony/finder/SplFileInfo.php mode change 100755 => 100644 vendor/symfony/finder/composer.json mode change 100755 => 100644 vendor/symfony/options-resolver/CHANGELOG.md mode change 100755 => 100644 vendor/symfony/options-resolver/Debug/OptionsResolverIntrospector.php mode change 100755 => 100644 vendor/symfony/options-resolver/Exception/AccessException.php mode change 100755 => 100644 vendor/symfony/options-resolver/Exception/ExceptionInterface.php mode change 100755 => 100644 vendor/symfony/options-resolver/Exception/InvalidArgumentException.php mode change 100755 => 100644 vendor/symfony/options-resolver/Exception/InvalidOptionsException.php mode change 100755 => 100644 vendor/symfony/options-resolver/Exception/MissingOptionsException.php mode change 100755 => 100644 vendor/symfony/options-resolver/Exception/NoConfigurationException.php mode change 100755 => 100644 vendor/symfony/options-resolver/Exception/NoSuchOptionException.php mode change 100755 => 100644 vendor/symfony/options-resolver/Exception/OptionDefinitionException.php mode change 100755 => 100644 vendor/symfony/options-resolver/Exception/UndefinedOptionsException.php mode change 100755 => 100644 vendor/symfony/options-resolver/LICENSE mode change 100755 => 100644 vendor/symfony/options-resolver/OptionConfigurator.php mode change 100755 => 100644 vendor/symfony/options-resolver/Options.php mode change 100755 => 100644 vendor/symfony/options-resolver/OptionsResolver.php mode change 100755 => 100644 vendor/symfony/options-resolver/README.md mode change 100755 => 100644 vendor/symfony/options-resolver/composer.json mode change 100755 => 100644 vendor/symfony/process/CHANGELOG.md mode change 100755 => 100644 vendor/symfony/process/Exception/ExceptionInterface.php mode change 100755 => 100644 vendor/symfony/process/Exception/InvalidArgumentException.php mode change 100755 => 100644 vendor/symfony/process/Exception/LogicException.php mode change 100755 => 100644 vendor/symfony/process/Exception/ProcessFailedException.php mode change 100755 => 100644 vendor/symfony/process/Exception/ProcessSignaledException.php mode change 100755 => 100644 vendor/symfony/process/Exception/ProcessTimedOutException.php mode change 100755 => 100644 vendor/symfony/process/Exception/RunProcessFailedException.php mode change 100755 => 100644 vendor/symfony/process/Exception/RuntimeException.php mode change 100755 => 100644 vendor/symfony/process/ExecutableFinder.php mode change 100755 => 100644 vendor/symfony/process/InputStream.php mode change 100755 => 100644 vendor/symfony/process/LICENSE mode change 100755 => 100644 vendor/symfony/process/Messenger/RunProcessContext.php mode change 100755 => 100644 vendor/symfony/process/Messenger/RunProcessMessage.php mode change 100755 => 100644 vendor/symfony/process/Messenger/RunProcessMessageHandler.php mode change 100755 => 100644 vendor/symfony/process/PhpExecutableFinder.php mode change 100755 => 100644 vendor/symfony/process/PhpProcess.php mode change 100755 => 100644 vendor/symfony/process/PhpSubprocess.php mode change 100755 => 100644 vendor/symfony/process/Pipes/AbstractPipes.php mode change 100755 => 100644 vendor/symfony/process/Pipes/PipesInterface.php mode change 100755 => 100644 vendor/symfony/process/Pipes/UnixPipes.php mode change 100755 => 100644 vendor/symfony/process/Pipes/WindowsPipes.php mode change 100755 => 100644 vendor/symfony/process/Process.php mode change 100755 => 100644 vendor/symfony/process/ProcessUtils.php mode change 100755 => 100644 vendor/symfony/process/README.md mode change 100755 => 100644 vendor/symfony/process/composer.json mode change 100755 => 100644 vendor/symfony/service-contracts/Attribute/Required.php mode change 100755 => 100644 vendor/symfony/service-contracts/Attribute/SubscribedService.php mode change 100755 => 100644 vendor/symfony/service-contracts/CHANGELOG.md mode change 100755 => 100644 vendor/symfony/service-contracts/LICENSE mode change 100755 => 100644 vendor/symfony/service-contracts/README.md mode change 100755 => 100644 vendor/symfony/service-contracts/ResetInterface.php mode change 100755 => 100644 vendor/symfony/service-contracts/ServiceLocatorTrait.php mode change 100755 => 100644 vendor/symfony/service-contracts/ServiceProviderInterface.php mode change 100755 => 100644 vendor/symfony/service-contracts/ServiceSubscriberInterface.php mode change 100755 => 100644 vendor/symfony/service-contracts/ServiceSubscriberTrait.php mode change 100755 => 100644 vendor/symfony/service-contracts/Test/ServiceLocatorTest.php mode change 100755 => 100644 vendor/symfony/service-contracts/Test/ServiceLocatorTestCase.php mode change 100755 => 100644 vendor/symfony/service-contracts/composer.json mode change 100755 => 100644 vendor/symfony/stopwatch/CHANGELOG.md mode change 100755 => 100644 vendor/symfony/stopwatch/LICENSE mode change 100755 => 100644 vendor/symfony/stopwatch/README.md mode change 100755 => 100644 vendor/symfony/stopwatch/Section.php mode change 100755 => 100644 vendor/symfony/stopwatch/Stopwatch.php mode change 100755 => 100644 vendor/symfony/stopwatch/StopwatchEvent.php mode change 100755 => 100644 vendor/symfony/stopwatch/StopwatchPeriod.php mode change 100755 => 100644 vendor/symfony/stopwatch/composer.json mode change 100755 => 100644 vendor/symfony/string/AbstractString.php mode change 100755 => 100644 vendor/symfony/string/AbstractUnicodeString.php mode change 100755 => 100644 vendor/symfony/string/ByteString.php mode change 100755 => 100644 vendor/symfony/string/CHANGELOG.md mode change 100755 => 100644 vendor/symfony/string/CodePointString.php mode change 100755 => 100644 vendor/symfony/string/Exception/ExceptionInterface.php mode change 100755 => 100644 vendor/symfony/string/Exception/InvalidArgumentException.php mode change 100755 => 100644 vendor/symfony/string/Exception/RuntimeException.php mode change 100755 => 100644 vendor/symfony/string/Inflector/EnglishInflector.php mode change 100755 => 100644 vendor/symfony/string/Inflector/FrenchInflector.php mode change 100755 => 100644 vendor/symfony/string/Inflector/InflectorInterface.php mode change 100755 => 100644 vendor/symfony/string/LICENSE mode change 100755 => 100644 vendor/symfony/string/LazyString.php mode change 100755 => 100644 vendor/symfony/string/README.md mode change 100755 => 100644 vendor/symfony/string/Resources/data/wcswidth_table_wide.php mode change 100755 => 100644 vendor/symfony/string/Resources/data/wcswidth_table_zero.php mode change 100755 => 100644 vendor/symfony/string/Resources/functions.php mode change 100755 => 100644 vendor/symfony/string/Slugger/AsciiSlugger.php mode change 100755 => 100644 vendor/symfony/string/Slugger/SluggerInterface.php mode change 100755 => 100644 vendor/symfony/string/UnicodeString.php mode change 100755 => 100644 vendor/symfony/string/composer.json diff --git a/vendor/kint-php/kint/src/Parser/ArrayObjectPlugin.php b/vendor/kint-php/kint/src/Parser/ArrayObjectPlugin.php old mode 100755 new mode 100644 diff --git a/vendor/kint-php/kint/src/Parser/Base64Plugin.php b/vendor/kint-php/kint/src/Parser/Base64Plugin.php old mode 100755 new mode 100644 diff --git a/vendor/kint-php/kint/src/Parser/BinaryPlugin.php b/vendor/kint-php/kint/src/Parser/BinaryPlugin.php old mode 100755 new mode 100644 diff --git a/vendor/kint-php/kint/src/Parser/BlacklistPlugin.php b/vendor/kint-php/kint/src/Parser/BlacklistPlugin.php old mode 100755 new mode 100644 diff --git a/vendor/kint-php/kint/src/Parser/ClassMethodsPlugin.php b/vendor/kint-php/kint/src/Parser/ClassMethodsPlugin.php old mode 100755 new mode 100644 diff --git a/vendor/kint-php/kint/src/Parser/ClassStaticsPlugin.php b/vendor/kint-php/kint/src/Parser/ClassStaticsPlugin.php old mode 100755 new mode 100644 diff --git a/vendor/kint-php/kint/src/Parser/ClosurePlugin.php b/vendor/kint-php/kint/src/Parser/ClosurePlugin.php old mode 100755 new mode 100644 diff --git a/vendor/kint-php/kint/src/Parser/ColorPlugin.php b/vendor/kint-php/kint/src/Parser/ColorPlugin.php old mode 100755 new mode 100644 diff --git a/vendor/kint-php/kint/src/Parser/ConstructablePluginInterface.php b/vendor/kint-php/kint/src/Parser/ConstructablePluginInterface.php old mode 100755 new mode 100644 diff --git a/vendor/kint-php/kint/src/Parser/DOMDocumentPlugin.php b/vendor/kint-php/kint/src/Parser/DOMDocumentPlugin.php old mode 100755 new mode 100644 diff --git a/vendor/kint-php/kint/src/Parser/DateTimePlugin.php b/vendor/kint-php/kint/src/Parser/DateTimePlugin.php old mode 100755 new mode 100644 diff --git a/vendor/kint-php/kint/src/Parser/EnumPlugin.php b/vendor/kint-php/kint/src/Parser/EnumPlugin.php old mode 100755 new mode 100644 diff --git a/vendor/kint-php/kint/src/Parser/FsPathPlugin.php b/vendor/kint-php/kint/src/Parser/FsPathPlugin.php old mode 100755 new mode 100644 index 7ec49de1..1a98c6dc --- a/vendor/kint-php/kint/src/Parser/FsPathPlugin.php +++ b/vendor/kint-php/kint/src/Parser/FsPathPlugin.php @@ -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)) { diff --git a/vendor/kint-php/kint/src/Parser/IteratorPlugin.php b/vendor/kint-php/kint/src/Parser/IteratorPlugin.php old mode 100755 new mode 100644 diff --git a/vendor/kint-php/kint/src/Parser/JsonPlugin.php b/vendor/kint-php/kint/src/Parser/JsonPlugin.php old mode 100755 new mode 100644 diff --git a/vendor/kint-php/kint/src/Parser/MicrotimePlugin.php b/vendor/kint-php/kint/src/Parser/MicrotimePlugin.php old mode 100755 new mode 100644 diff --git a/vendor/kint-php/kint/src/Parser/MysqliPlugin.php b/vendor/kint-php/kint/src/Parser/MysqliPlugin.php old mode 100755 new mode 100644 index 90a4abd6..22a23a90 --- a/vendor/kint-php/kint/src/Parser/MysqliPlugin.php +++ b/vendor/kint-php/kint/src/Parser/MysqliPlugin.php @@ -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 diff --git a/vendor/kint-php/kint/src/Parser/Parser.php b/vendor/kint-php/kint/src/Parser/Parser.php old mode 100755 new mode 100644 diff --git a/vendor/kint-php/kint/src/Parser/PluginInterface.php b/vendor/kint-php/kint/src/Parser/PluginInterface.php old mode 100755 new mode 100644 diff --git a/vendor/kint-php/kint/src/Parser/ProxyPlugin.php b/vendor/kint-php/kint/src/Parser/ProxyPlugin.php old mode 100755 new mode 100644 diff --git a/vendor/kint-php/kint/src/Parser/SerializePlugin.php b/vendor/kint-php/kint/src/Parser/SerializePlugin.php old mode 100755 new mode 100644 diff --git a/vendor/kint-php/kint/src/Parser/SimpleXMLElementPlugin.php b/vendor/kint-php/kint/src/Parser/SimpleXMLElementPlugin.php old mode 100755 new mode 100644 diff --git a/vendor/kint-php/kint/src/Parser/SplFileInfoPlugin.php b/vendor/kint-php/kint/src/Parser/SplFileInfoPlugin.php old mode 100755 new mode 100644 diff --git a/vendor/kint-php/kint/src/Parser/SplObjectStoragePlugin.php b/vendor/kint-php/kint/src/Parser/SplObjectStoragePlugin.php old mode 100755 new mode 100644 diff --git a/vendor/kint-php/kint/src/Parser/StreamPlugin.php b/vendor/kint-php/kint/src/Parser/StreamPlugin.php old mode 100755 new mode 100644 diff --git a/vendor/kint-php/kint/src/Parser/TablePlugin.php b/vendor/kint-php/kint/src/Parser/TablePlugin.php old mode 100755 new mode 100644 diff --git a/vendor/kint-php/kint/src/Parser/ThrowablePlugin.php b/vendor/kint-php/kint/src/Parser/ThrowablePlugin.php old mode 100755 new mode 100644 diff --git a/vendor/kint-php/kint/src/Parser/TimestampPlugin.php b/vendor/kint-php/kint/src/Parser/TimestampPlugin.php old mode 100755 new mode 100644 diff --git a/vendor/kint-php/kint/src/Parser/ToStringPlugin.php b/vendor/kint-php/kint/src/Parser/ToStringPlugin.php old mode 100755 new mode 100644 diff --git a/vendor/kint-php/kint/src/Parser/TracePlugin.php b/vendor/kint-php/kint/src/Parser/TracePlugin.php old mode 100755 new mode 100644 diff --git a/vendor/kint-php/kint/src/Parser/XmlPlugin.php b/vendor/kint-php/kint/src/Parser/XmlPlugin.php old mode 100755 new mode 100644 diff --git a/vendor/kint-php/kint/src/Renderer/AbstractRenderer.php b/vendor/kint-php/kint/src/Renderer/AbstractRenderer.php old mode 100755 new mode 100644 diff --git a/vendor/kint-php/kint/src/Renderer/CliRenderer.php b/vendor/kint-php/kint/src/Renderer/CliRenderer.php old mode 100755 new mode 100644 diff --git a/vendor/kint-php/kint/src/Renderer/PlainRenderer.php b/vendor/kint-php/kint/src/Renderer/PlainRenderer.php old mode 100755 new mode 100644 diff --git a/vendor/kint-php/kint/src/Renderer/RendererInterface.php b/vendor/kint-php/kint/src/Renderer/RendererInterface.php old mode 100755 new mode 100644 diff --git a/vendor/kint-php/kint/src/Renderer/Rich/AbstractPlugin.php b/vendor/kint-php/kint/src/Renderer/Rich/AbstractPlugin.php old mode 100755 new mode 100644 diff --git a/vendor/kint-php/kint/src/Renderer/Rich/ArrayLimitPlugin.php b/vendor/kint-php/kint/src/Renderer/Rich/ArrayLimitPlugin.php old mode 100755 new mode 100644 diff --git a/vendor/kint-php/kint/src/Renderer/Rich/BinaryPlugin.php b/vendor/kint-php/kint/src/Renderer/Rich/BinaryPlugin.php old mode 100755 new mode 100644 diff --git a/vendor/kint-php/kint/src/Renderer/Rich/BlacklistPlugin.php b/vendor/kint-php/kint/src/Renderer/Rich/BlacklistPlugin.php old mode 100755 new mode 100644 diff --git a/vendor/kint-php/kint/src/Renderer/Rich/CallablePlugin.php b/vendor/kint-php/kint/src/Renderer/Rich/CallablePlugin.php old mode 100755 new mode 100644 diff --git a/vendor/kint-php/kint/src/Renderer/Rich/ClosurePlugin.php b/vendor/kint-php/kint/src/Renderer/Rich/ClosurePlugin.php old mode 100755 new mode 100644 diff --git a/vendor/kint-php/kint/src/Renderer/Rich/ColorPlugin.php b/vendor/kint-php/kint/src/Renderer/Rich/ColorPlugin.php old mode 100755 new mode 100644 diff --git a/vendor/kint-php/kint/src/Renderer/Rich/DepthLimitPlugin.php b/vendor/kint-php/kint/src/Renderer/Rich/DepthLimitPlugin.php old mode 100755 new mode 100644 diff --git a/vendor/kint-php/kint/src/Renderer/Rich/MethodDefinitionPlugin.php b/vendor/kint-php/kint/src/Renderer/Rich/MethodDefinitionPlugin.php old mode 100755 new mode 100644 diff --git a/vendor/kint-php/kint/src/Renderer/Rich/MicrotimePlugin.php b/vendor/kint-php/kint/src/Renderer/Rich/MicrotimePlugin.php old mode 100755 new mode 100644 diff --git a/vendor/kint-php/kint/src/Renderer/Rich/PluginInterface.php b/vendor/kint-php/kint/src/Renderer/Rich/PluginInterface.php old mode 100755 new mode 100644 diff --git a/vendor/kint-php/kint/src/Renderer/Rich/RecursionPlugin.php b/vendor/kint-php/kint/src/Renderer/Rich/RecursionPlugin.php old mode 100755 new mode 100644 diff --git a/vendor/kint-php/kint/src/Renderer/Rich/SimpleXMLElementPlugin.php b/vendor/kint-php/kint/src/Renderer/Rich/SimpleXMLElementPlugin.php old mode 100755 new mode 100644 diff --git a/vendor/kint-php/kint/src/Renderer/Rich/SourcePlugin.php b/vendor/kint-php/kint/src/Renderer/Rich/SourcePlugin.php old mode 100755 new mode 100644 diff --git a/vendor/kint-php/kint/src/Renderer/Rich/TabPluginInterface.php b/vendor/kint-php/kint/src/Renderer/Rich/TabPluginInterface.php old mode 100755 new mode 100644 diff --git a/vendor/kint-php/kint/src/Renderer/Rich/TablePlugin.php b/vendor/kint-php/kint/src/Renderer/Rich/TablePlugin.php old mode 100755 new mode 100644 diff --git a/vendor/kint-php/kint/src/Renderer/Rich/TimestampPlugin.php b/vendor/kint-php/kint/src/Renderer/Rich/TimestampPlugin.php old mode 100755 new mode 100644 diff --git a/vendor/kint-php/kint/src/Renderer/Rich/TraceFramePlugin.php b/vendor/kint-php/kint/src/Renderer/Rich/TraceFramePlugin.php old mode 100755 new mode 100644 diff --git a/vendor/kint-php/kint/src/Renderer/Rich/ValuePluginInterface.php b/vendor/kint-php/kint/src/Renderer/Rich/ValuePluginInterface.php old mode 100755 new mode 100644 diff --git a/vendor/kint-php/kint/src/Renderer/RichRenderer.php b/vendor/kint-php/kint/src/Renderer/RichRenderer.php old mode 100755 new mode 100644 diff --git a/vendor/kint-php/kint/src/Renderer/Text/AbstractPlugin.php b/vendor/kint-php/kint/src/Renderer/Text/AbstractPlugin.php old mode 100755 new mode 100644 diff --git a/vendor/kint-php/kint/src/Renderer/Text/ArrayLimitPlugin.php b/vendor/kint-php/kint/src/Renderer/Text/ArrayLimitPlugin.php old mode 100755 new mode 100644 diff --git a/vendor/kint-php/kint/src/Renderer/Text/BlacklistPlugin.php b/vendor/kint-php/kint/src/Renderer/Text/BlacklistPlugin.php old mode 100755 new mode 100644 diff --git a/vendor/kint-php/kint/src/Renderer/Text/DepthLimitPlugin.php b/vendor/kint-php/kint/src/Renderer/Text/DepthLimitPlugin.php old mode 100755 new mode 100644 diff --git a/vendor/kint-php/kint/src/Renderer/Text/EnumPlugin.php b/vendor/kint-php/kint/src/Renderer/Text/EnumPlugin.php old mode 100755 new mode 100644 diff --git a/vendor/kint-php/kint/src/Renderer/Text/MicrotimePlugin.php b/vendor/kint-php/kint/src/Renderer/Text/MicrotimePlugin.php old mode 100755 new mode 100644 diff --git a/vendor/kint-php/kint/src/Renderer/Text/PluginInterface.php b/vendor/kint-php/kint/src/Renderer/Text/PluginInterface.php old mode 100755 new mode 100644 diff --git a/vendor/kint-php/kint/src/Renderer/Text/RecursionPlugin.php b/vendor/kint-php/kint/src/Renderer/Text/RecursionPlugin.php old mode 100755 new mode 100644 diff --git a/vendor/kint-php/kint/src/Renderer/Text/TracePlugin.php b/vendor/kint-php/kint/src/Renderer/Text/TracePlugin.php old mode 100755 new mode 100644 diff --git a/vendor/kint-php/kint/src/Renderer/TextRenderer.php b/vendor/kint-php/kint/src/Renderer/TextRenderer.php old mode 100755 new mode 100644 diff --git a/vendor/kint-php/kint/src/Utils.php b/vendor/kint-php/kint/src/Utils.php old mode 100755 new mode 100644 diff --git a/vendor/kint-php/kint/src/Zval/BlobValue.php b/vendor/kint-php/kint/src/Zval/BlobValue.php old mode 100755 new mode 100644 index 5e9f129d..66f60fdb --- a/vendor/kint-php/kint/src/Zval/BlobValue.php +++ b/vendor/kint-php/kint/src/Zval/BlobValue.php @@ -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; } diff --git a/vendor/kint-php/kint/src/Zval/ClosureValue.php b/vendor/kint-php/kint/src/Zval/ClosureValue.php old mode 100755 new mode 100644 diff --git a/vendor/kint-php/kint/src/Zval/DateTimeValue.php b/vendor/kint-php/kint/src/Zval/DateTimeValue.php old mode 100755 new mode 100644 diff --git a/vendor/kint-php/kint/src/Zval/EnumValue.php b/vendor/kint-php/kint/src/Zval/EnumValue.php old mode 100755 new mode 100644 diff --git a/vendor/kint-php/kint/src/Zval/InstanceValue.php b/vendor/kint-php/kint/src/Zval/InstanceValue.php old mode 100755 new mode 100644 diff --git a/vendor/kint-php/kint/src/Zval/MethodValue.php b/vendor/kint-php/kint/src/Zval/MethodValue.php old mode 100755 new mode 100644 diff --git a/vendor/kint-php/kint/src/Zval/ParameterHoldingTrait.php b/vendor/kint-php/kint/src/Zval/ParameterHoldingTrait.php old mode 100755 new mode 100644 diff --git a/vendor/kint-php/kint/src/Zval/ParameterValue.php b/vendor/kint-php/kint/src/Zval/ParameterValue.php old mode 100755 new mode 100644 diff --git a/vendor/kint-php/kint/src/Zval/Representation/ColorRepresentation.php b/vendor/kint-php/kint/src/Zval/Representation/ColorRepresentation.php old mode 100755 new mode 100644 diff --git a/vendor/kint-php/kint/src/Zval/Representation/MethodDefinitionRepresentation.php b/vendor/kint-php/kint/src/Zval/Representation/MethodDefinitionRepresentation.php old mode 100755 new mode 100644 diff --git a/vendor/kint-php/kint/src/Zval/Representation/MicrotimeRepresentation.php b/vendor/kint-php/kint/src/Zval/Representation/MicrotimeRepresentation.php old mode 100755 new mode 100644 diff --git a/vendor/kint-php/kint/src/Zval/Representation/Representation.php b/vendor/kint-php/kint/src/Zval/Representation/Representation.php old mode 100755 new mode 100644 diff --git a/vendor/kint-php/kint/src/Zval/Representation/SourceRepresentation.php b/vendor/kint-php/kint/src/Zval/Representation/SourceRepresentation.php old mode 100755 new mode 100644 diff --git a/vendor/kint-php/kint/src/Zval/Representation/SplFileInfoRepresentation.php b/vendor/kint-php/kint/src/Zval/Representation/SplFileInfoRepresentation.php old mode 100755 new mode 100644 index 6424ee6a..dad9d04c --- a/vendor/kint-php/kint/src/Zval/Representation/SplFileInfoRepresentation.php +++ b/vendor/kint-php/kint/src/Zval/Representation/SplFileInfoRepresentation.php @@ -76,7 +76,7 @@ class SplFileInfoRepresentation extends Representation } } catch (RuntimeException $e) { if (false === \strpos($e->getMessage(), ' open_basedir ')) { - throw $e; + throw $e; // @codeCoverageIgnore } } diff --git a/vendor/kint-php/kint/src/Zval/ResourceValue.php b/vendor/kint-php/kint/src/Zval/ResourceValue.php old mode 100755 new mode 100644 diff --git a/vendor/kint-php/kint/src/Zval/SimpleXMLElementValue.php b/vendor/kint-php/kint/src/Zval/SimpleXMLElementValue.php old mode 100755 new mode 100644 diff --git a/vendor/kint-php/kint/src/Zval/StreamValue.php b/vendor/kint-php/kint/src/Zval/StreamValue.php old mode 100755 new mode 100644 diff --git a/vendor/kint-php/kint/src/Zval/ThrowableValue.php b/vendor/kint-php/kint/src/Zval/ThrowableValue.php old mode 100755 new mode 100644 diff --git a/vendor/kint-php/kint/src/Zval/TraceFrameValue.php b/vendor/kint-php/kint/src/Zval/TraceFrameValue.php old mode 100755 new mode 100644 diff --git a/vendor/kint-php/kint/src/Zval/TraceValue.php b/vendor/kint-php/kint/src/Zval/TraceValue.php old mode 100755 new mode 100644 diff --git a/vendor/kint-php/kint/src/Zval/Value.php b/vendor/kint-php/kint/src/Zval/Value.php old mode 100755 new mode 100644 diff --git a/vendor/nexusphp/cs-config/.editorconfig b/vendor/nexusphp/cs-config/.editorconfig old mode 100755 new mode 100644 diff --git a/vendor/nexusphp/cs-config/.gitignore b/vendor/nexusphp/cs-config/.gitignore old mode 100755 new mode 100644 diff --git a/vendor/nexusphp/cs-config/.php-cs-fixer.dist.php b/vendor/nexusphp/cs-config/.php-cs-fixer.dist.php old mode 100755 new mode 100644 index 10c1ff20..2b2b368a --- a/vendor/nexusphp/cs-config/.php-cs-fixer.dist.php +++ b/vendor/nexusphp/cs-config/.php-cs-fixer.dist.php @@ -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); diff --git a/vendor/nexusphp/cs-config/CHANGELOG.md b/vendor/nexusphp/cs-config/CHANGELOG.md old mode 100755 new mode 100644 index a6808464..3879b945 --- a/vendor/nexusphp/cs-config/CHANGELOG.md +++ b/vendor/nexusphp/cs-config/CHANGELOG.md @@ -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 diff --git a/vendor/nexusphp/cs-config/LICENSE b/vendor/nexusphp/cs-config/LICENSE old mode 100755 new mode 100644 diff --git a/vendor/nexusphp/cs-config/README.md b/vendor/nexusphp/cs-config/README.md old mode 100755 new mode 100644 index dbe3729d..669414bb --- a/vendor/nexusphp/cs-config/README.md +++ b/vendor/nexusphp/cs-config/README.md @@ -31,9 +31,9 @@ then you should add it as a development-time dependency: forProjects(); +return Factory::create(new Nexus73())->forProjects(); ``` @@ -61,10 +61,10 @@ two optional arguments (the email address and starting year of license). 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 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 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. 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; } } diff --git a/vendor/nexusphp/cs-config/composer.json b/vendor/nexusphp/cs-config/composer.json old mode 100755 new mode 100644 index 034c2601..4853bdd5 --- a/vendor/nexusphp/cs-config/composer.json +++ b/vendor/nexusphp/cs-config/composer.json @@ -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": "*" diff --git a/vendor/nexusphp/cs-config/phpstan-baseline.php b/vendor/nexusphp/cs-config/phpstan-baseline.php old mode 100755 new mode 100644 index 1acac93f..b3e23b76 --- a/vendor/nexusphp/cs-config/phpstan-baseline.php +++ b/vendor/nexusphp/cs-config/phpstan-baseline.php @@ -1,35 +1,44 @@ - + * + * 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\\\\|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]]; diff --git a/vendor/nexusphp/cs-config/phpstan.neon.dist b/vendor/nexusphp/cs-config/phpstan.neon.dist old mode 100755 new mode 100644 diff --git a/vendor/nexusphp/cs-config/phpunit.xml.dist b/vendor/nexusphp/cs-config/phpunit.xml.dist old mode 100755 new mode 100644 index 4234708d..5c3a6da3 --- a/vendor/nexusphp/cs-config/phpunit.xml.dist +++ b/vendor/nexusphp/cs-config/phpunit.xml.dist @@ -2,35 +2,38 @@ - - - tests - - - - - src - - + + + tests + + - - - - - - + + + src + - - - + + + + + + + + + diff --git a/vendor/nexusphp/cs-config/src/Factory.php b/vendor/nexusphp/cs-config/src/Factory.php old mode 100755 new mode 100644 diff --git a/vendor/nexusphp/cs-config/src/Fixer/AbstractCustomFixer.php b/vendor/nexusphp/cs-config/src/Fixer/AbstractCustomFixer.php old mode 100755 new mode 100644 index 44a7bc9c..239c73a0 --- a/vendor/nexusphp/cs-config/src/Fixer/AbstractCustomFixer.php +++ b/vendor/nexusphp/cs-config/src/Fixer/AbstractCustomFixer.php @@ -35,6 +35,9 @@ abstract class AbstractCustomFixer extends AbstractFixer return $namespace.'/'.Utils::camelCaseToUnderscore($name); } + /** + * {@inheritDoc} + */ public function getName(): string { return self::name(); diff --git a/vendor/nexusphp/cs-config/src/Fixer/Comment/NoCodeSeparatorCommentFixer.php b/vendor/nexusphp/cs-config/src/Fixer/Comment/NoCodeSeparatorCommentFixer.php old mode 100755 new mode 100644 index b8a34677..92fc6c62 --- a/vendor/nexusphp/cs-config/src/Fixer/Comment/NoCodeSeparatorCommentFixer.php +++ b/vendor/nexusphp/cs-config/src/Fixer/Comment/NoCodeSeparatorCommentFixer.php @@ -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) { diff --git a/vendor/nexusphp/cs-config/src/Fixer/Comment/SpaceAfterCommentStartFixer.php b/vendor/nexusphp/cs-config/src/Fixer/Comment/SpaceAfterCommentStartFixer.php old mode 100755 new mode 100644 index 8895b53e..018560b6 --- a/vendor/nexusphp/cs-config/src/Fixer/Comment/SpaceAfterCommentStartFixer.php +++ b/vendor/nexusphp/cs-config/src/Fixer/Comment/SpaceAfterCommentStartFixer.php @@ -28,6 +28,9 @@ use PhpCsFixer\Tokenizer\Tokens; */ final class SpaceAfterCommentStartFixer extends AbstractCustomFixer implements DeprecatedFixerInterface { + /** + * {@inheritDoc} + */ public function getDefinition(): FixerDefinitionInterface { return new FixerDefinition( @@ -39,11 +42,17 @@ final class SpaceAfterCommentStartFixer extends AbstractCustomFixer implements D ); } + /** + * {@inheritDoc} + */ public function getSuccessorsNames(): array { return ['single_line_comment_spacing']; } + /** + * {@inheritDoc} + */ public function isCandidate(Tokens $tokens): bool { return $tokens->isTokenKindFound(T_COMMENT); @@ -59,6 +68,9 @@ final class SpaceAfterCommentStartFixer extends AbstractCustomFixer implements D return 3; } + /** + * {@inheritDoc} + */ protected function applyFix(\SplFileInfo $file, Tokens $tokens): void { for ($index = 1, $count = $tokens->count(); $index < $count; ++$index) { diff --git a/vendor/nexusphp/cs-config/src/FixerGenerator.php b/vendor/nexusphp/cs-config/src/FixerGenerator.php old mode 100755 new mode 100644 diff --git a/vendor/nexusphp/cs-config/src/Ruleset/AbstractRuleset.php b/vendor/nexusphp/cs-config/src/Ruleset/AbstractRuleset.php old mode 100755 new mode 100644 index 082924db..a9c1a7b1 --- a/vendor/nexusphp/cs-config/src/Ruleset/AbstractRuleset.php +++ b/vendor/nexusphp/cs-config/src/Ruleset/AbstractRuleset.php @@ -23,7 +23,7 @@ abstract class AbstractRuleset implements RulesetInterface /** * Rules for the ruleset. * - * @var array|string>|bool> + * @var array|bool|string>|bool> */ protected array $rules = []; @@ -39,6 +39,9 @@ abstract class AbstractRuleset implements RulesetInterface */ protected bool $autoActivateIsRiskyAllowed = false; + /** + * {@inheritDoc} + */ final public function getName(): string { if ('' !== $this->name) { @@ -54,16 +57,25 @@ abstract class AbstractRuleset implements RulesetInterface return static::class; } + /** + * {@inheritDoc} + */ final public function getRules(): array { return $this->rules; } + /** + * {@inheritDoc} + */ final public function getRequiredPHPVersion(): int { return $this->requiredPHPVersion; } + /** + * {@inheritDoc} + */ final public function willAutoActivateIsRiskyAllowed(): bool { return $this->autoActivateIsRiskyAllowed; diff --git a/vendor/nexusphp/cs-config/src/Ruleset/Nexus80.php b/vendor/nexusphp/cs-config/src/Ruleset/Nexus80.php old mode 100755 new mode 100644 index 03f63a24..b33116f5 --- a/vendor/nexusphp/cs-config/src/Ruleset/Nexus80.php +++ b/vendor/nexusphp/cs-config/src/Ruleset/Nexus80.php @@ -89,7 +89,6 @@ final class Nexus80 extends AbstractRuleset 'space_before_parenthesis' => true, 'inline_constructor_arguments' => true, ], - 'class_keyword' => true, 'class_reference_name_casing' => true, 'clean_namespace' => true, 'combine_consecutive_issets' => true, @@ -135,6 +134,11 @@ final class Nexus80 extends AbstractRuleset 'noise_remaining_usages' => false, 'noise_remaining_usages_exclude' => [], ], + 'escape_implicit_backslashes' => [ + 'double_quoted' => true, + 'heredoc_syntax' => true, + 'single_quoted' => false, + ], 'explicit_indirect_variable' => true, 'explicit_string_variable' => true, 'final_class' => false, @@ -147,25 +151,7 @@ final class Nexus80 extends AbstractRuleset 'fopen_flag_order' => true, 'fopen_flags' => ['b_mode' => true], 'full_opening_tag' => true, - 'fully_qualified_strict_types' => [ - 'import_symbols' => false, - 'leading_backslash_in_global_namespace' => false, - 'phpdoc_tags' => [ - 'param', - 'phpstan-param', - 'phpstan-property', - 'phpstan-property-read', - 'phpstan-property-write', - 'phpstan-return', - 'phpstan-var', - 'property', - 'property-read', - 'property-write', - 'return', - 'throws', - 'var', - ], - ], + 'fully_qualified_strict_types' => ['leading_backslash_in_global_namespace' => false], 'function_declaration' => [ 'closure_function_spacing' => 'one', 'closure_fn_spacing' => 'none', @@ -202,7 +188,6 @@ final class Nexus80 extends AbstractRuleset ], 'group_import' => false, 'header_comment' => false, - 'heredoc_closing_marker' => false, 'heredoc_indentation' => ['indentation' => 'start_plus_one'], 'heredoc_to_nowdoc' => true, 'implode_call' => true, @@ -233,7 +218,6 @@ final class Nexus80 extends AbstractRuleset 'modernize_strpos' => true, 'modernize_types_casting' => true, 'multiline_comment_opening_closing' => true, - 'multiline_string_to_heredoc' => true, 'multiline_whitespace_before_semicolons' => ['strategy' => 'new_line_for_chained_calls'], 'native_constant_invocation' => [ 'fix_built_in' => false, @@ -302,10 +286,9 @@ final class Nexus80 extends AbstractRuleset 'no_spaces_around_offset' => ['positions' => ['inside', 'outside']], 'no_superfluous_elseif' => true, 'no_superfluous_phpdoc_tags' => [ - 'allow_hidden_params' => true, - 'allow_mixed' => false, - 'allow_unused_params' => false, - 'remove_inheritdoc' => true, + 'allow_mixed' => true, + 'allow_unused_params' => true, + 'remove_inheritdoc' => false, ], 'no_trailing_comma_in_singleline' => [ 'elements' => ['arguments', 'array', 'array_destructuring', 'group_import'], @@ -343,8 +326,7 @@ final class Nexus80 extends AbstractRuleset 'not_operator_with_space' => false, 'not_operator_with_successor_space' => true, 'nullable_type_declaration' => ['syntax' => 'question_mark'], - 'nullable_type_declaration_for_default_null_value' => true, - 'numeric_literal_separator' => false, + 'nullable_type_declaration_for_default_null_value' => ['use_nullable_type_declaration' => true], 'object_operator_without_whitespace' => true, 'octal_notation' => false, // requires 8.1+ 'operator_linebreak' => ['only_booleans' => true, 'position' => 'beginning'], @@ -431,16 +413,9 @@ final class Nexus80 extends AbstractRuleset 'phpdoc_add_missing_param_annotation' => ['only_untyped' => true], 'phpdoc_align' => [ 'align' => 'vertical', - 'spacing' => 1, 'tags' => [ 'method', 'param', - 'phpstan-assert', - 'phpstan-assert-if-true', - 'phpstan-assert-if-false', - 'phpstan-param', - 'phpstan-property', - 'phpstan-return', 'property', 'return', 'throws', @@ -449,7 +424,6 @@ final class Nexus80 extends AbstractRuleset ], ], 'phpdoc_annotation_without_dot' => true, - 'phpdoc_array_type' => true, 'phpdoc_indent' => true, 'phpdoc_inline_tag_normalizer' => [ 'tags' => [ @@ -469,7 +443,6 @@ final class Nexus80 extends AbstractRuleset 'method' => 'multi', 'property' => 'multi', ], - 'phpdoc_list_type' => true, 'phpdoc_no_access' => true, 'phpdoc_no_alias_tag' => [ 'replacements' => [ @@ -545,22 +518,13 @@ final class Nexus80 extends AbstractRuleset 'phpdoc_summary' => true, 'phpdoc_tag_casing' => ['tags' => ['inheritDoc']], 'phpdoc_tag_type' => ['tags' => ['inheritDoc' => 'inline']], - 'phpdoc_to_comment' => [ - 'allow_before_return_statement' => true, - 'ignored_tags' => [], - ], - 'phpdoc_to_param_type' => [ - 'scalar_types' => true, - 'union_types' => true, - ], - 'phpdoc_to_property_type' => [ - 'scalar_types' => true, - 'union_types' => true, - ], - 'phpdoc_to_return_type' => [ - 'scalar_types' => true, - 'union_types' => true, - ], + 'phpdoc_to_comment' => ['ignored_tags' => [ + 'phpstan-var', + 'phpstan-return', + ]], + 'phpdoc_to_param_type' => ['scalar_types' => true], + 'phpdoc_to_property_type' => ['scalar_types' => true], + 'phpdoc_to_return_type' => ['scalar_types' => true], 'phpdoc_trim' => true, 'phpdoc_trim_consecutive_blank_line_separation' => true, 'phpdoc_types' => ['groups' => ['simple', 'alias', 'meta']], @@ -674,15 +638,10 @@ final class Nexus80 extends AbstractRuleset 'spaces_inside_parentheses' => ['space' => 'none'], 'standardize_increment' => true, 'standardize_not_equals' => true, - 'statement_indentation' => ['stick_comment_to_next_continuous_control_statement' => true], + 'statement_indentation' => true, 'static_lambda' => true, 'strict_comparison' => true, 'strict_param' => true, - 'string_implicit_backslashes' => [ - 'double_quoted' => 'escape', - 'heredoc' => 'escape', - 'single_quoted' => 'ignore', - ], 'string_length_to_empty' => true, 'string_line_ending' => true, 'switch_case_semicolon_to_colon' => true, @@ -698,7 +657,7 @@ final class Nexus80 extends AbstractRuleset 'trim_array_spaces' => true, 'type_declaration_spaces' => ['elements' => ['function', 'property']], 'types_spaces' => ['space' => 'none', 'space_multiple_catch' => null], - 'unary_operator_spaces' => ['only_dec_inc' => false], + 'unary_operator_spaces' => true, 'use_arrow_functions' => true, 'visibility_required' => ['elements' => ['const', 'method', 'property']], 'void_return' => true, @@ -711,7 +670,7 @@ final class Nexus80 extends AbstractRuleset 'less_and_greater' => null, ], ]; - $this->requiredPHPVersion = 8_00_00; + $this->requiredPHPVersion = 80000; $this->autoActivateIsRiskyAllowed = true; } } diff --git a/vendor/nexusphp/cs-config/src/Ruleset/Nexus81.php b/vendor/nexusphp/cs-config/src/Ruleset/Nexus81.php old mode 100755 new mode 100644 index 3a7d4a6b..06edc83b --- a/vendor/nexusphp/cs-config/src/Ruleset/Nexus81.php +++ b/vendor/nexusphp/cs-config/src/Ruleset/Nexus81.php @@ -89,7 +89,6 @@ final class Nexus81 extends AbstractRuleset 'space_before_parenthesis' => true, 'inline_constructor_arguments' => true, ], - 'class_keyword' => true, 'class_reference_name_casing' => true, 'clean_namespace' => true, 'combine_consecutive_issets' => true, @@ -135,6 +134,11 @@ final class Nexus81 extends AbstractRuleset 'noise_remaining_usages' => false, 'noise_remaining_usages_exclude' => [], ], + 'escape_implicit_backslashes' => [ + 'double_quoted' => true, + 'heredoc_syntax' => true, + 'single_quoted' => false, + ], 'explicit_indirect_variable' => true, 'explicit_string_variable' => true, 'final_class' => false, @@ -147,25 +151,7 @@ final class Nexus81 extends AbstractRuleset 'fopen_flag_order' => true, 'fopen_flags' => ['b_mode' => true], 'full_opening_tag' => true, - 'fully_qualified_strict_types' => [ - 'import_symbols' => false, - 'leading_backslash_in_global_namespace' => false, - 'phpdoc_tags' => [ - 'param', - 'phpstan-param', - 'phpstan-property', - 'phpstan-property-read', - 'phpstan-property-write', - 'phpstan-return', - 'phpstan-var', - 'property', - 'property-read', - 'property-write', - 'return', - 'throws', - 'var', - ], - ], + 'fully_qualified_strict_types' => ['leading_backslash_in_global_namespace' => false], 'function_declaration' => [ 'closure_function_spacing' => 'one', 'closure_fn_spacing' => 'none', @@ -202,7 +188,6 @@ final class Nexus81 extends AbstractRuleset ], 'group_import' => false, 'header_comment' => false, - 'heredoc_closing_marker' => false, 'heredoc_indentation' => ['indentation' => 'start_plus_one'], 'heredoc_to_nowdoc' => true, 'implode_call' => true, @@ -233,7 +218,6 @@ final class Nexus81 extends AbstractRuleset 'modernize_strpos' => true, 'modernize_types_casting' => true, 'multiline_comment_opening_closing' => true, - 'multiline_string_to_heredoc' => true, 'multiline_whitespace_before_semicolons' => ['strategy' => 'new_line_for_chained_calls'], 'native_constant_invocation' => [ 'fix_built_in' => false, @@ -302,10 +286,9 @@ final class Nexus81 extends AbstractRuleset 'no_spaces_around_offset' => ['positions' => ['inside', 'outside']], 'no_superfluous_elseif' => true, 'no_superfluous_phpdoc_tags' => [ - 'allow_hidden_params' => true, - 'allow_mixed' => false, - 'allow_unused_params' => false, - 'remove_inheritdoc' => true, + 'allow_mixed' => true, + 'allow_unused_params' => true, + 'remove_inheritdoc' => false, ], 'no_trailing_comma_in_singleline' => [ 'elements' => ['arguments', 'array', 'array_destructuring', 'group_import'], @@ -343,8 +326,7 @@ final class Nexus81 extends AbstractRuleset 'not_operator_with_space' => false, 'not_operator_with_successor_space' => true, 'nullable_type_declaration' => ['syntax' => 'question_mark'], - 'nullable_type_declaration_for_default_null_value' => true, - 'numeric_literal_separator' => false, + 'nullable_type_declaration_for_default_null_value' => ['use_nullable_type_declaration' => true], 'object_operator_without_whitespace' => true, 'octal_notation' => true, 'operator_linebreak' => ['only_booleans' => true, 'position' => 'beginning'], @@ -431,16 +413,9 @@ final class Nexus81 extends AbstractRuleset 'phpdoc_add_missing_param_annotation' => ['only_untyped' => true], 'phpdoc_align' => [ 'align' => 'vertical', - 'spacing' => 1, 'tags' => [ 'method', 'param', - 'phpstan-assert', - 'phpstan-assert-if-true', - 'phpstan-assert-if-false', - 'phpstan-param', - 'phpstan-property', - 'phpstan-return', 'property', 'return', 'throws', @@ -449,7 +424,6 @@ final class Nexus81 extends AbstractRuleset ], ], 'phpdoc_annotation_without_dot' => true, - 'phpdoc_array_type' => true, 'phpdoc_indent' => true, 'phpdoc_inline_tag_normalizer' => [ 'tags' => [ @@ -469,7 +443,6 @@ final class Nexus81 extends AbstractRuleset 'method' => 'multi', 'property' => 'multi', ], - 'phpdoc_list_type' => true, 'phpdoc_no_access' => true, 'phpdoc_no_alias_tag' => [ 'replacements' => [ @@ -545,22 +518,13 @@ final class Nexus81 extends AbstractRuleset 'phpdoc_summary' => true, 'phpdoc_tag_casing' => ['tags' => ['inheritDoc']], 'phpdoc_tag_type' => ['tags' => ['inheritDoc' => 'inline']], - 'phpdoc_to_comment' => [ - 'allow_before_return_statement' => true, - 'ignored_tags' => [], - ], - 'phpdoc_to_param_type' => [ - 'scalar_types' => true, - 'union_types' => true, - ], - 'phpdoc_to_property_type' => [ - 'scalar_types' => true, - 'union_types' => true, - ], - 'phpdoc_to_return_type' => [ - 'scalar_types' => true, - 'union_types' => true, - ], + 'phpdoc_to_comment' => ['ignored_tags' => [ + 'phpstan-var', + 'phpstan-return', + ]], + 'phpdoc_to_param_type' => ['scalar_types' => true], + 'phpdoc_to_property_type' => ['scalar_types' => true], + 'phpdoc_to_return_type' => ['scalar_types' => true], 'phpdoc_trim' => true, 'phpdoc_trim_consecutive_blank_line_separation' => true, 'phpdoc_types' => ['groups' => ['simple', 'alias', 'meta']], @@ -674,15 +638,10 @@ final class Nexus81 extends AbstractRuleset 'spaces_inside_parentheses' => ['space' => 'none'], 'standardize_increment' => true, 'standardize_not_equals' => true, - 'statement_indentation' => ['stick_comment_to_next_continuous_control_statement' => true], + 'statement_indentation' => true, 'static_lambda' => true, 'strict_comparison' => true, 'strict_param' => true, - 'string_implicit_backslashes' => [ - 'double_quoted' => 'escape', - 'heredoc' => 'escape', - 'single_quoted' => 'ignore', - ], 'string_length_to_empty' => true, 'string_line_ending' => true, 'switch_case_semicolon_to_colon' => true, @@ -698,7 +657,7 @@ final class Nexus81 extends AbstractRuleset 'trim_array_spaces' => true, 'type_declaration_spaces' => ['elements' => ['function', 'property']], 'types_spaces' => ['space' => 'none', 'space_multiple_catch' => null], - 'unary_operator_spaces' => ['only_dec_inc' => false], + 'unary_operator_spaces' => true, 'use_arrow_functions' => true, 'visibility_required' => ['elements' => ['const', 'method', 'property']], 'void_return' => true, @@ -711,7 +670,7 @@ final class Nexus81 extends AbstractRuleset 'less_and_greater' => null, ], ]; - $this->requiredPHPVersion = 8_01_00; + $this->requiredPHPVersion = 80100; $this->autoActivateIsRiskyAllowed = true; } } diff --git a/vendor/nexusphp/cs-config/src/Ruleset/Nexus82.php b/vendor/nexusphp/cs-config/src/Ruleset/Nexus82.php old mode 100755 new mode 100644 index a562c681..84242caa --- a/vendor/nexusphp/cs-config/src/Ruleset/Nexus82.php +++ b/vendor/nexusphp/cs-config/src/Ruleset/Nexus82.php @@ -89,7 +89,6 @@ final class Nexus82 extends AbstractRuleset 'space_before_parenthesis' => true, 'inline_constructor_arguments' => true, ], - 'class_keyword' => true, 'class_reference_name_casing' => true, 'clean_namespace' => true, 'combine_consecutive_issets' => true, @@ -135,6 +134,11 @@ final class Nexus82 extends AbstractRuleset 'noise_remaining_usages' => false, 'noise_remaining_usages_exclude' => [], ], + 'escape_implicit_backslashes' => [ + 'double_quoted' => true, + 'heredoc_syntax' => true, + 'single_quoted' => false, + ], 'explicit_indirect_variable' => true, 'explicit_string_variable' => true, 'final_class' => false, @@ -147,25 +151,7 @@ final class Nexus82 extends AbstractRuleset 'fopen_flag_order' => true, 'fopen_flags' => ['b_mode' => true], 'full_opening_tag' => true, - 'fully_qualified_strict_types' => [ - 'import_symbols' => false, - 'leading_backslash_in_global_namespace' => false, - 'phpdoc_tags' => [ - 'param', - 'phpstan-param', - 'phpstan-property', - 'phpstan-property-read', - 'phpstan-property-write', - 'phpstan-return', - 'phpstan-var', - 'property', - 'property-read', - 'property-write', - 'return', - 'throws', - 'var', - ], - ], + 'fully_qualified_strict_types' => ['leading_backslash_in_global_namespace' => false], 'function_declaration' => [ 'closure_function_spacing' => 'one', 'closure_fn_spacing' => 'none', @@ -202,7 +188,6 @@ final class Nexus82 extends AbstractRuleset ], 'group_import' => false, 'header_comment' => false, - 'heredoc_closing_marker' => false, 'heredoc_indentation' => ['indentation' => 'start_plus_one'], 'heredoc_to_nowdoc' => true, 'implode_call' => true, @@ -233,7 +218,6 @@ final class Nexus82 extends AbstractRuleset 'modernize_strpos' => true, 'modernize_types_casting' => true, 'multiline_comment_opening_closing' => true, - 'multiline_string_to_heredoc' => true, 'multiline_whitespace_before_semicolons' => ['strategy' => 'new_line_for_chained_calls'], 'native_constant_invocation' => [ 'fix_built_in' => false, @@ -302,10 +286,9 @@ final class Nexus82 extends AbstractRuleset 'no_spaces_around_offset' => ['positions' => ['inside', 'outside']], 'no_superfluous_elseif' => true, 'no_superfluous_phpdoc_tags' => [ - 'allow_hidden_params' => true, - 'allow_mixed' => false, - 'allow_unused_params' => false, - 'remove_inheritdoc' => true, + 'allow_mixed' => true, + 'allow_unused_params' => true, + 'remove_inheritdoc' => false, ], 'no_trailing_comma_in_singleline' => [ 'elements' => ['arguments', 'array', 'array_destructuring', 'group_import'], @@ -343,8 +326,7 @@ final class Nexus82 extends AbstractRuleset 'not_operator_with_space' => false, 'not_operator_with_successor_space' => true, 'nullable_type_declaration' => ['syntax' => 'question_mark'], - 'nullable_type_declaration_for_default_null_value' => true, - 'numeric_literal_separator' => false, + 'nullable_type_declaration_for_default_null_value' => ['use_nullable_type_declaration' => true], 'object_operator_without_whitespace' => true, 'octal_notation' => true, 'operator_linebreak' => ['only_booleans' => true, 'position' => 'beginning'], @@ -431,16 +413,9 @@ final class Nexus82 extends AbstractRuleset 'phpdoc_add_missing_param_annotation' => ['only_untyped' => true], 'phpdoc_align' => [ 'align' => 'vertical', - 'spacing' => 1, 'tags' => [ 'method', 'param', - 'phpstan-assert', - 'phpstan-assert-if-true', - 'phpstan-assert-if-false', - 'phpstan-param', - 'phpstan-property', - 'phpstan-return', 'property', 'return', 'throws', @@ -449,7 +424,6 @@ final class Nexus82 extends AbstractRuleset ], ], 'phpdoc_annotation_without_dot' => true, - 'phpdoc_array_type' => true, 'phpdoc_indent' => true, 'phpdoc_inline_tag_normalizer' => [ 'tags' => [ @@ -469,7 +443,6 @@ final class Nexus82 extends AbstractRuleset 'method' => 'multi', 'property' => 'multi', ], - 'phpdoc_list_type' => true, 'phpdoc_no_access' => true, 'phpdoc_no_alias_tag' => [ 'replacements' => [ @@ -545,22 +518,13 @@ final class Nexus82 extends AbstractRuleset 'phpdoc_summary' => true, 'phpdoc_tag_casing' => ['tags' => ['inheritDoc']], 'phpdoc_tag_type' => ['tags' => ['inheritDoc' => 'inline']], - 'phpdoc_to_comment' => [ - 'allow_before_return_statement' => true, - 'ignored_tags' => [], - ], - 'phpdoc_to_param_type' => [ - 'scalar_types' => true, - 'union_types' => true, - ], - 'phpdoc_to_property_type' => [ - 'scalar_types' => true, - 'union_types' => true, - ], - 'phpdoc_to_return_type' => [ - 'scalar_types' => true, - 'union_types' => true, - ], + 'phpdoc_to_comment' => ['ignored_tags' => [ + 'phpstan-var', + 'phpstan-return', + ]], + 'phpdoc_to_param_type' => ['scalar_types' => true], + 'phpdoc_to_property_type' => ['scalar_types' => true], + 'phpdoc_to_return_type' => ['scalar_types' => true], 'phpdoc_trim' => true, 'phpdoc_trim_consecutive_blank_line_separation' => true, 'phpdoc_types' => ['groups' => ['simple', 'alias', 'meta']], @@ -674,15 +638,10 @@ final class Nexus82 extends AbstractRuleset 'spaces_inside_parentheses' => ['space' => 'none'], 'standardize_increment' => true, 'standardize_not_equals' => true, - 'statement_indentation' => ['stick_comment_to_next_continuous_control_statement' => true], + 'statement_indentation' => true, 'static_lambda' => true, 'strict_comparison' => true, 'strict_param' => true, - 'string_implicit_backslashes' => [ - 'double_quoted' => 'escape', - 'heredoc' => 'escape', - 'single_quoted' => 'ignore', - ], 'string_length_to_empty' => true, 'string_line_ending' => true, 'switch_case_semicolon_to_colon' => true, @@ -698,7 +657,7 @@ final class Nexus82 extends AbstractRuleset 'trim_array_spaces' => true, 'type_declaration_spaces' => ['elements' => ['function', 'property']], 'types_spaces' => ['space' => 'none', 'space_multiple_catch' => null], - 'unary_operator_spaces' => ['only_dec_inc' => false], + 'unary_operator_spaces' => true, 'use_arrow_functions' => true, 'visibility_required' => ['elements' => ['const', 'method', 'property']], 'void_return' => true, @@ -711,7 +670,7 @@ final class Nexus82 extends AbstractRuleset 'less_and_greater' => null, ], ]; - $this->requiredPHPVersion = 8_02_00; + $this->requiredPHPVersion = 80200; $this->autoActivateIsRiskyAllowed = true; } } diff --git a/vendor/nexusphp/cs-config/src/Ruleset/RulesetInterface.php b/vendor/nexusphp/cs-config/src/Ruleset/RulesetInterface.php old mode 100755 new mode 100644 index 5da120e5..f56d3311 --- a/vendor/nexusphp/cs-config/src/Ruleset/RulesetInterface.php +++ b/vendor/nexusphp/cs-config/src/Ruleset/RulesetInterface.php @@ -23,7 +23,7 @@ interface RulesetInterface /** * Defined rules for this ruleset. * - * @return array|string>|bool> + * @return array|bool|string>|bool> */ public function getRules(): array; diff --git a/vendor/nexusphp/cs-config/src/Test/AbstractCustomFixerTestCase.php b/vendor/nexusphp/cs-config/src/Test/AbstractCustomFixerTestCase.php old mode 100755 new mode 100644 index 206d2770..919a9aa3 --- a/vendor/nexusphp/cs-config/src/Test/AbstractCustomFixerTestCase.php +++ b/vendor/nexusphp/cs-config/src/Test/AbstractCustomFixerTestCase.php @@ -210,7 +210,7 @@ abstract class AbstractCustomFixerTestCase extends TestCase self::assertFalse( $duplicatedCodeSample, - sprintf('[%s] Sample #%d duplicates #%d.', $fixerName, $counter, (int) $duplicatedCodeSample + 1), + sprintf('[%s] Sample #%d duplicates #%d.', $fixerName, $counter, ++$duplicatedCodeSample), ); } @@ -274,7 +274,7 @@ abstract class AbstractCustomFixerTestCase extends TestCase $tokens->clearEmptyTokens(); - /** @var list $tokensArray */ + /** @var Token[] $tokensArray */ $tokensArray = $tokens->toArray(); self::assertCount( diff --git a/vendor/nexusphp/cs-config/src/Test/AbstractRulesetTestCase.php b/vendor/nexusphp/cs-config/src/Test/AbstractRulesetTestCase.php old mode 100755 new mode 100644 index 93cfee6e..11d17a91 --- a/vendor/nexusphp/cs-config/src/Test/AbstractRulesetTestCase.php +++ b/vendor/nexusphp/cs-config/src/Test/AbstractRulesetTestCase.php @@ -19,7 +19,6 @@ use PhpCsFixer\Fixer\FixerInterface; use PhpCsFixer\FixerConfiguration\DeprecatedFixerOptionInterface; use PhpCsFixer\FixerConfiguration\FixerOptionInterface; use PhpCsFixer\Preg; -use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; /** @@ -38,7 +37,7 @@ abstract class AbstractRulesetTestCase extends TestCase private static array $configuredFixers = []; /** - * @var array|string>|bool> + * @var array|bool> */ private static array $enabledFixers = []; @@ -134,13 +133,14 @@ abstract class AbstractRulesetTestCase extends TestCase } /** - * @param list $goodOptions - * @param list $deprecatedOptions + * @dataProvider provideEnabledConfigurableFixerUsesAllAvailableOptionsNotDeprecatedCases + * + * @param string[] $goodOptions + * @param string[] $deprecatedOptions */ - #[DataProvider('provideEnabledConfigurableFixerUsesAllAvailableOptionsNotDeprecatedCases')] final public function testEnabledConfigurableFixerUsesAllAvailableOptionsNotDeprecated(string $name, array $goodOptions, array $deprecatedOptions): void { - /** @var null|array|string>|bool $ruleConfiguration */ + /** @var null|array|bool $ruleConfiguration */ $ruleConfiguration = self::$enabledFixers[$name] ?? null; if (null === $ruleConfiguration) { @@ -187,7 +187,7 @@ abstract class AbstractRulesetTestCase extends TestCase /** * @codeCoverageIgnore * - * @return iterable, 2: list}> + * @return iterable */ public static function provideEnabledConfigurableFixerUsesAllAvailableOptionsNotDeprecatedCases(): iterable { @@ -198,21 +198,21 @@ abstract class AbstractRulesetTestCase extends TestCase if ($fixer instanceof ConfigurableFixerInterface) { $options = $fixer->getConfigurationDefinition()->getOptions(); - $goodOptions = array_values(array_map( + $goodOptions = array_map( static fn(FixerOptionInterface $option): string => $option->getName(), array_filter( $options, static fn(FixerOptionInterface $option): bool => ! $option instanceof DeprecatedFixerOptionInterface, ), - )); + ); - $deprecatedOptions = array_values(array_map( + $deprecatedOptions = array_map( static fn(FixerOptionInterface $option): string => $option->getName(), array_filter( $options, static fn(FixerOptionInterface $option): bool => $option instanceof DeprecatedFixerOptionInterface, ), - )); + ); yield $name => [$name, $goodOptions, $deprecatedOptions]; } diff --git a/vendor/nexusphp/cs-config/src/Test/FixerProvider.php b/vendor/nexusphp/cs-config/src/Test/FixerProvider.php old mode 100755 new mode 100644 index 34e5ac5a..d42fc3fc --- a/vendor/nexusphp/cs-config/src/Test/FixerProvider.php +++ b/vendor/nexusphp/cs-config/src/Test/FixerProvider.php @@ -29,8 +29,8 @@ final class FixerProvider private static array $builtIn = []; /** - * @param array $configured configured fixers from a ruleset - * @param array|string>|bool> $enabled enabled fixers from a ruleset + * @param array $configured configured fixers from a ruleset + * @param array|bool> $enabled enabled fixers from a ruleset */ private function __construct(private array $configured, private array $enabled) {} @@ -84,7 +84,7 @@ final class FixerProvider * Returns the enabled rules from a ruleset and * their configuration. * - * @return array|string>|bool> + * @return array|bool> */ public function enabled(): array { diff --git a/vendor/symfony/console/Application.php b/vendor/symfony/console/Application.php old mode 100755 new mode 100644 index 9df983cc..87eb7a6c --- a/vendor/symfony/console/Application.php +++ b/vendor/symfony/console/Application.php @@ -75,8 +75,6 @@ class Application implements ResetInterface private array $commands = []; private bool $wantHelps = false; private ?Command $runningCommand = null; - private string $name; - private string $version; private ?CommandLoaderInterface $commandLoader = null; private bool $catchExceptions = true; private bool $catchErrors = false; @@ -91,15 +89,15 @@ class Application implements ResetInterface private ?SignalRegistry $signalRegistry = null; private array $signalsToDispatchEvent = []; - public function __construct(string $name = 'UNKNOWN', string $version = 'UNKNOWN') - { - $this->name = $name; - $this->version = $version; + public function __construct( + private string $name = 'UNKNOWN', + private string $version = 'UNKNOWN', + ) { $this->terminal = new Terminal(); $this->defaultCommand = 'list'; if (\defined('SIGINT') && SignalRegistry::isSupported()) { $this->signalRegistry = new SignalRegistry(); - $this->signalsToDispatchEvent = [\SIGINT, \SIGTERM, \SIGUSR1, \SIGUSR2]; + $this->signalsToDispatchEvent = [\SIGINT, \SIGQUIT, \SIGTERM, \SIGUSR1, \SIGUSR2]; } } @@ -622,7 +620,7 @@ class Application implements ResetInterface $expr = implode('[^:]*:', array_map('preg_quote', explode(':', $namespace))).'[^:]*'; $namespaces = preg_grep('{^'.$expr.'}', $allNamespaces); - if (empty($namespaces)) { + if (!$namespaces) { $message = sprintf('There are no commands defined in the "%s" namespace.', $namespace); if ($alternatives = $this->findAlternatives($namespace, $allNamespaces)) { @@ -676,12 +674,12 @@ class Application implements ResetInterface $expr = implode('[^:]*:', array_map('preg_quote', explode(':', $name))).'[^:]*'; $commands = preg_grep('{^'.$expr.'}', $allCommands); - if (empty($commands)) { + if (!$commands) { $commands = preg_grep('{^'.$expr.'}i', $allCommands); } // if no commands matched or we just matched namespaces - if (empty($commands) || \count(preg_grep('{^'.$expr.'$}i', $commands)) < 1) { + if (!$commands || \count(preg_grep('{^'.$expr.'$}i', $commands)) < 1) { if (false !== $pos = strrpos($name, ':')) { // check if a namespace exists and contains commands $this->findNamespace(substr($name, 0, $pos)); @@ -716,7 +714,7 @@ class Application implements ResetInterface $aliases[$nameOrAlias] = $commandName; - return $commandName === $nameOrAlias || !\in_array($commandName, $commands); + return $commandName === $nameOrAlias || !\in_array($commandName, $commands, true); })); } @@ -986,7 +984,7 @@ class Application implements ResetInterface if (Terminal::hasSttyAvailable()) { $sttyMode = shell_exec('stty -g'); - foreach ([\SIGINT, \SIGTERM] as $signal) { + foreach ([\SIGINT, \SIGQUIT, \SIGTERM] as $signal) { $this->signalRegistry->register($signal, static fn () => shell_exec('stty '.$sttyMode)); } } diff --git a/vendor/symfony/console/Attribute/AsCommand.php b/vendor/symfony/console/Attribute/AsCommand.php old mode 100755 new mode 100644 index b337f548..6066d7c5 --- a/vendor/symfony/console/Attribute/AsCommand.php +++ b/vendor/symfony/console/Attribute/AsCommand.php @@ -17,6 +17,12 @@ namespace Symfony\Component\Console\Attribute; #[\Attribute(\Attribute::TARGET_CLASS)] class AsCommand { + /** + * @param string $name The name of the command, used when calling it (i.e. "cache:clear") + * @param string|null $description The description of the command, displayed with the help page + * @param string[] $aliases The list of aliases of the command. The command will be executed when using one of them (i.e. "cache:clean") + * @param bool $hidden If true, the command won't be shown when listing all the available commands, but it can still be run as any other command + */ public function __construct( public string $name, public ?string $description = null, diff --git a/vendor/symfony/console/CHANGELOG.md b/vendor/symfony/console/CHANGELOG.md old mode 100755 new mode 100644 index 0ff71d2f..25d7f717 --- a/vendor/symfony/console/CHANGELOG.md +++ b/vendor/symfony/console/CHANGELOG.md @@ -1,6 +1,11 @@ CHANGELOG ========= +7.1 +--- + + * Add `ArgvInput::getRawTokens()` + 7.0 --- diff --git a/vendor/symfony/console/CI/GithubActionReporter.php b/vendor/symfony/console/CI/GithubActionReporter.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/console/Color.php b/vendor/symfony/console/Color.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/console/Command/Command.php b/vendor/symfony/console/Command/Command.php old mode 100755 new mode 100644 index 07b56ec1..03da6db4 --- a/vendor/symfony/console/Command/Command.php +++ b/vendor/symfony/console/Command/Command.php @@ -277,17 +277,13 @@ class Command $statusCode = ($this->code)($input, $output); } else { $statusCode = $this->execute($input, $output); - - if (!\is_int($statusCode)) { - throw new \TypeError(sprintf('Return value of "%s::execute()" must be of the type int, "%s" returned.', static::class, get_debug_type($statusCode))); - } } return is_numeric($statusCode) ? (int) $statusCode : 0; } /** - * Adds suggestions to $suggestions for the current completion input (e.g. option or argument). + * Supplies suggestions when resolving possible completion options for input (e.g. option or argument). */ public function complete(CompletionInput $input, CompletionSuggestions $suggestions): void { @@ -405,8 +401,8 @@ class Command /** * Adds an argument. * - * @param $mode The argument mode: InputArgument::REQUIRED or InputArgument::OPTIONAL - * @param $default The default value (for InputArgument::OPTIONAL mode only) + * @param $mode The argument mode: InputArgument::REQUIRED or InputArgument::OPTIONAL + * @param $default The default value (for InputArgument::OPTIONAL mode only) * @param array|\Closure(CompletionInput,CompletionSuggestions):list $suggestedValues The values used for input completion * * @return $this @@ -424,9 +420,9 @@ class Command /** * Adds an option. * - * @param $shortcut The shortcuts, can be null, a string of shortcuts delimited by | or an array of shortcuts - * @param $mode The option mode: One of the InputOption::VALUE_* constants - * @param $default The default value (must be null for InputOption::VALUE_NONE) + * @param $shortcut The shortcuts, can be null, a string of shortcuts delimited by | or an array of shortcuts + * @param $mode The option mode: One of the InputOption::VALUE_* constants + * @param $default The default value (must be null for InputOption::VALUE_NONE) * @param array|\Closure(CompletionInput,CompletionSuggestions):list $suggestedValues The values used for input completion * * @return $this diff --git a/vendor/symfony/console/Command/CompleteCommand.php b/vendor/symfony/console/Command/CompleteCommand.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/console/Command/DumpCompletionCommand.php b/vendor/symfony/console/Command/DumpCompletionCommand.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/console/Command/HelpCommand.php b/vendor/symfony/console/Command/HelpCommand.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/console/Command/LazyCommand.php b/vendor/symfony/console/Command/LazyCommand.php old mode 100755 new mode 100644 index d2fe8a1b..fd2c300d --- a/vendor/symfony/console/Command/LazyCommand.php +++ b/vendor/symfony/console/Command/LazyCommand.php @@ -27,17 +27,21 @@ use Symfony\Component\Console\Output\OutputInterface; final class LazyCommand extends Command { private \Closure|Command $command; - private ?bool $isEnabled; - public function __construct(string $name, array $aliases, string $description, bool $isHidden, \Closure $commandFactory, ?bool $isEnabled = true) - { + public function __construct( + string $name, + array $aliases, + string $description, + bool $isHidden, + \Closure $commandFactory, + private ?bool $isEnabled = true, + ) { $this->setName($name) ->setAliases($aliases) ->setHidden($isHidden) ->setDescription($description); $this->command = $commandFactory; - $this->isEnabled = $isEnabled; } public function ignoreValidationErrors(): void diff --git a/vendor/symfony/console/Command/ListCommand.php b/vendor/symfony/console/Command/ListCommand.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/console/Command/LockableTrait.php b/vendor/symfony/console/Command/LockableTrait.php old mode 100755 new mode 100644 index cd7548f0..f0001cc5 --- a/vendor/symfony/console/Command/LockableTrait.php +++ b/vendor/symfony/console/Command/LockableTrait.php @@ -26,6 +26,8 @@ trait LockableTrait { private ?LockInterface $lock = null; + private ?LockFactory $lockFactory = null; + /** * Locks a command. */ @@ -39,13 +41,17 @@ trait LockableTrait throw new LogicException('A lock is already in place.'); } - if (SemaphoreStore::isSupported()) { - $store = new SemaphoreStore(); - } else { - $store = new FlockStore(); + if (null === $this->lockFactory) { + if (SemaphoreStore::isSupported()) { + $store = new SemaphoreStore(); + } else { + $store = new FlockStore(); + } + + $this->lockFactory = (new LockFactory($store)); } - $this->lock = (new LockFactory($store))->createLock($name ?: $this->getName()); + $this->lock = $this->lockFactory->createLock($name ?: $this->getName()); if (!$this->lock->acquire($blocking)) { $this->lock = null; diff --git a/vendor/symfony/console/Command/SignalableCommandInterface.php b/vendor/symfony/console/Command/SignalableCommandInterface.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/console/Command/TraceableCommand.php b/vendor/symfony/console/Command/TraceableCommand.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/console/CommandLoader/CommandLoaderInterface.php b/vendor/symfony/console/CommandLoader/CommandLoaderInterface.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/console/CommandLoader/ContainerCommandLoader.php b/vendor/symfony/console/CommandLoader/ContainerCommandLoader.php old mode 100755 new mode 100644 index bfa0ac46..84e25be7 --- a/vendor/symfony/console/CommandLoader/ContainerCommandLoader.php +++ b/vendor/symfony/console/CommandLoader/ContainerCommandLoader.php @@ -22,16 +22,13 @@ use Symfony\Component\Console\Exception\CommandNotFoundException; */ class ContainerCommandLoader implements CommandLoaderInterface { - private ContainerInterface $container; - private array $commandMap; - /** * @param array $commandMap An array with command names as keys and service ids as values */ - public function __construct(ContainerInterface $container, array $commandMap) - { - $this->container = $container; - $this->commandMap = $commandMap; + public function __construct( + private ContainerInterface $container, + private array $commandMap, + ) { } public function get(string $name): Command diff --git a/vendor/symfony/console/CommandLoader/FactoryCommandLoader.php b/vendor/symfony/console/CommandLoader/FactoryCommandLoader.php old mode 100755 new mode 100644 index 9ced75ae..ae16bf6f --- a/vendor/symfony/console/CommandLoader/FactoryCommandLoader.php +++ b/vendor/symfony/console/CommandLoader/FactoryCommandLoader.php @@ -21,14 +21,12 @@ use Symfony\Component\Console\Exception\CommandNotFoundException; */ class FactoryCommandLoader implements CommandLoaderInterface { - private array $factories; - /** * @param callable[] $factories Indexed by command names */ - public function __construct(array $factories) - { - $this->factories = $factories; + public function __construct( + private array $factories, + ) { } public function has(string $name): bool diff --git a/vendor/symfony/console/Completion/CompletionInput.php b/vendor/symfony/console/Completion/CompletionInput.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/console/Completion/CompletionSuggestions.php b/vendor/symfony/console/Completion/CompletionSuggestions.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/console/Completion/Output/BashCompletionOutput.php b/vendor/symfony/console/Completion/Output/BashCompletionOutput.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/console/Completion/Output/CompletionOutputInterface.php b/vendor/symfony/console/Completion/Output/CompletionOutputInterface.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/console/Completion/Output/FishCompletionOutput.php b/vendor/symfony/console/Completion/Output/FishCompletionOutput.php old mode 100755 new mode 100644 index d2c414e4..356a974e --- a/vendor/symfony/console/Completion/Output/FishCompletionOutput.php +++ b/vendor/symfony/console/Completion/Output/FishCompletionOutput.php @@ -21,11 +21,14 @@ class FishCompletionOutput implements CompletionOutputInterface { public function write(CompletionSuggestions $suggestions, OutputInterface $output): void { - $values = $suggestions->getValueSuggestions(); + $values = []; + foreach ($suggestions->getValueSuggestions() as $value) { + $values[] = $value->getValue().($value->getDescription() ? "\t".$value->getDescription() : ''); + } foreach ($suggestions->getOptionSuggestions() as $option) { - $values[] = '--'.$option->getName(); + $values[] = '--'.$option->getName().($option->getDescription() ? "\t".$option->getDescription() : ''); if ($option->isNegatable()) { - $values[] = '--no-'.$option->getName(); + $values[] = '--no-'.$option->getName().($option->getDescription() ? "\t".$option->getDescription() : ''); } } $output->write(implode("\n", $values)); diff --git a/vendor/symfony/console/Completion/Output/ZshCompletionOutput.php b/vendor/symfony/console/Completion/Output/ZshCompletionOutput.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/console/Completion/Suggestion.php b/vendor/symfony/console/Completion/Suggestion.php old mode 100755 new mode 100644 index 7392965a..3251b079 --- a/vendor/symfony/console/Completion/Suggestion.php +++ b/vendor/symfony/console/Completion/Suggestion.php @@ -20,7 +20,7 @@ class Suggestion implements \Stringable { public function __construct( private readonly string $value, - private readonly string $description = '' + private readonly string $description = '', ) { } diff --git a/vendor/symfony/console/ConsoleEvents.php b/vendor/symfony/console/ConsoleEvents.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/console/Cursor.php b/vendor/symfony/console/Cursor.php old mode 100755 new mode 100644 index 69fd3821..965f996e --- a/vendor/symfony/console/Cursor.php +++ b/vendor/symfony/console/Cursor.php @@ -18,16 +18,16 @@ use Symfony\Component\Console\Output\OutputInterface; */ final class Cursor { - private OutputInterface $output; /** @var resource */ private $input; /** * @param resource|null $input */ - public function __construct(OutputInterface $output, $input = null) - { - $this->output = $output; + public function __construct( + private OutputInterface $output, + $input = null, + ) { $this->input = $input ?? (\defined('STDIN') ? \STDIN : fopen('php://input', 'r+')); } diff --git a/vendor/symfony/console/DataCollector/CommandDataCollector.php b/vendor/symfony/console/DataCollector/CommandDataCollector.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/console/Debug/CliRequest.php b/vendor/symfony/console/Debug/CliRequest.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/console/DependencyInjection/AddConsoleCommandPass.php b/vendor/symfony/console/DependencyInjection/AddConsoleCommandPass.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/console/Descriptor/ApplicationDescription.php b/vendor/symfony/console/Descriptor/ApplicationDescription.php old mode 100755 new mode 100644 index ef9e8a63..5149fde4 --- a/vendor/symfony/console/Descriptor/ApplicationDescription.php +++ b/vendor/symfony/console/Descriptor/ApplicationDescription.php @@ -24,9 +24,6 @@ class ApplicationDescription { public const GLOBAL_NAMESPACE = '_global'; - private Application $application; - private ?string $namespace; - private bool $showHidden; private array $namespaces; /** @@ -39,11 +36,11 @@ class ApplicationDescription */ private array $aliases = []; - public function __construct(Application $application, ?string $namespace = null, bool $showHidden = false) - { - $this->application = $application; - $this->namespace = $namespace; - $this->showHidden = $showHidden; + public function __construct( + private Application $application, + private ?string $namespace = null, + private bool $showHidden = false, + ) { } public function getNamespaces(): array diff --git a/vendor/symfony/console/Descriptor/Descriptor.php b/vendor/symfony/console/Descriptor/Descriptor.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/console/Descriptor/DescriptorInterface.php b/vendor/symfony/console/Descriptor/DescriptorInterface.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/console/Descriptor/JsonDescriptor.php b/vendor/symfony/console/Descriptor/JsonDescriptor.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/console/Descriptor/MarkdownDescriptor.php b/vendor/symfony/console/Descriptor/MarkdownDescriptor.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/console/Descriptor/ReStructuredTextDescriptor.php b/vendor/symfony/console/Descriptor/ReStructuredTextDescriptor.php old mode 100755 new mode 100644 index d4423fd3..f12fecb6 --- a/vendor/symfony/console/Descriptor/ReStructuredTextDescriptor.php +++ b/vendor/symfony/console/Descriptor/ReStructuredTextDescriptor.php @@ -226,7 +226,7 @@ class ReStructuredTextDescriptor extends Descriptor $nonDefaultOptions = []; foreach ($definition->getOptions() as $option) { // Skip global options. - if (!\in_array($option->getName(), $globalOptions)) { + if (!\in_array($option->getName(), $globalOptions, true)) { $nonDefaultOptions[] = $option; } } diff --git a/vendor/symfony/console/Descriptor/TextDescriptor.php b/vendor/symfony/console/Descriptor/TextDescriptor.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/console/Descriptor/XmlDescriptor.php b/vendor/symfony/console/Descriptor/XmlDescriptor.php old mode 100755 new mode 100644 index 866c7185..8e44c88c --- a/vendor/symfony/console/Descriptor/XmlDescriptor.php +++ b/vendor/symfony/console/Descriptor/XmlDescriptor.php @@ -208,7 +208,7 @@ class XmlDescriptor extends Descriptor $defaults = \is_array($option->getDefault()) ? $option->getDefault() : (\is_bool($option->getDefault()) ? [var_export($option->getDefault(), true)] : ($option->getDefault() ? [$option->getDefault()] : [])); $objectXML->appendChild($defaultsXML = $dom->createElement('defaults')); - if (!empty($defaults)) { + if ($defaults) { foreach ($defaults as $default) { $defaultsXML->appendChild($defaultXML = $dom->createElement('default')); $defaultXML->appendChild($dom->createTextNode($default)); diff --git a/vendor/symfony/console/Event/ConsoleCommandEvent.php b/vendor/symfony/console/Event/ConsoleCommandEvent.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/console/Event/ConsoleErrorEvent.php b/vendor/symfony/console/Event/ConsoleErrorEvent.php old mode 100755 new mode 100644 index 7be2ff83..1c0d6265 --- a/vendor/symfony/console/Event/ConsoleErrorEvent.php +++ b/vendor/symfony/console/Event/ConsoleErrorEvent.php @@ -22,14 +22,15 @@ use Symfony\Component\Console\Output\OutputInterface; */ final class ConsoleErrorEvent extends ConsoleEvent { - private \Throwable $error; private int $exitCode; - public function __construct(InputInterface $input, OutputInterface $output, \Throwable $error, ?Command $command = null) - { + public function __construct( + InputInterface $input, + OutputInterface $output, + private \Throwable $error, + ?Command $command = null, + ) { parent::__construct($command, $input, $output); - - $this->error = $error; } public function getError(): \Throwable diff --git a/vendor/symfony/console/Event/ConsoleEvent.php b/vendor/symfony/console/Event/ConsoleEvent.php old mode 100755 new mode 100644 index 437a58e1..2f9f0778 --- a/vendor/symfony/console/Event/ConsoleEvent.php +++ b/vendor/symfony/console/Event/ConsoleEvent.php @@ -23,16 +23,11 @@ use Symfony\Contracts\EventDispatcher\Event; */ class ConsoleEvent extends Event { - protected ?Command $command; - - private InputInterface $input; - private OutputInterface $output; - - public function __construct(?Command $command, InputInterface $input, OutputInterface $output) - { - $this->command = $command; - $this->input = $input; - $this->output = $output; + public function __construct( + protected ?Command $command, + private InputInterface $input, + private OutputInterface $output, + ) { } /** diff --git a/vendor/symfony/console/Event/ConsoleSignalEvent.php b/vendor/symfony/console/Event/ConsoleSignalEvent.php old mode 100755 new mode 100644 index 95af1f91..b27f08a1 --- a/vendor/symfony/console/Event/ConsoleSignalEvent.php +++ b/vendor/symfony/console/Event/ConsoleSignalEvent.php @@ -20,14 +20,14 @@ use Symfony\Component\Console\Output\OutputInterface; */ final class ConsoleSignalEvent extends ConsoleEvent { - private int $handlingSignal; - private int|false $exitCode; - - public function __construct(Command $command, InputInterface $input, OutputInterface $output, int $handlingSignal, int|false $exitCode = 0) - { + public function __construct( + Command $command, + InputInterface $input, + OutputInterface $output, + private int $handlingSignal, + private int|false $exitCode = 0, + ) { parent::__construct($command, $input, $output); - $this->handlingSignal = $handlingSignal; - $this->exitCode = $exitCode; } public function getHandlingSignal(): int diff --git a/vendor/symfony/console/Event/ConsoleTerminateEvent.php b/vendor/symfony/console/Event/ConsoleTerminateEvent.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/console/EventListener/ErrorListener.php b/vendor/symfony/console/EventListener/ErrorListener.php old mode 100755 new mode 100644 index 1e41e759..49915a49 --- a/vendor/symfony/console/EventListener/ErrorListener.php +++ b/vendor/symfony/console/EventListener/ErrorListener.php @@ -24,11 +24,9 @@ use Symfony\Component\EventDispatcher\EventSubscriberInterface; */ class ErrorListener implements EventSubscriberInterface { - private ?LoggerInterface $logger; - - public function __construct(?LoggerInterface $logger = null) - { - $this->logger = $logger; + public function __construct( + private ?LoggerInterface $logger = null, + ) { } public function onConsoleError(ConsoleErrorEvent $event): void diff --git a/vendor/symfony/console/Exception/CommandNotFoundException.php b/vendor/symfony/console/Exception/CommandNotFoundException.php old mode 100755 new mode 100644 index 541b32b2..246f04fa --- a/vendor/symfony/console/Exception/CommandNotFoundException.php +++ b/vendor/symfony/console/Exception/CommandNotFoundException.php @@ -18,19 +18,19 @@ namespace Symfony\Component\Console\Exception; */ class CommandNotFoundException extends \InvalidArgumentException implements ExceptionInterface { - private array $alternatives; - /** * @param string $message Exception message to throw * @param string[] $alternatives List of similar defined names * @param int $code Exception code * @param \Throwable|null $previous Previous exception used for the exception chaining */ - public function __construct(string $message, array $alternatives = [], int $code = 0, ?\Throwable $previous = null) - { + public function __construct( + string $message, + private array $alternatives = [], + int $code = 0, + ?\Throwable $previous = null, + ) { parent::__construct($message, $code, $previous); - - $this->alternatives = $alternatives; } /** diff --git a/vendor/symfony/console/Exception/ExceptionInterface.php b/vendor/symfony/console/Exception/ExceptionInterface.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/console/Exception/InvalidArgumentException.php b/vendor/symfony/console/Exception/InvalidArgumentException.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/console/Exception/InvalidOptionException.php b/vendor/symfony/console/Exception/InvalidOptionException.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/console/Exception/LogicException.php b/vendor/symfony/console/Exception/LogicException.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/console/Exception/MissingInputException.php b/vendor/symfony/console/Exception/MissingInputException.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/console/Exception/NamespaceNotFoundException.php b/vendor/symfony/console/Exception/NamespaceNotFoundException.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/console/Exception/RunCommandFailedException.php b/vendor/symfony/console/Exception/RunCommandFailedException.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/console/Exception/RuntimeException.php b/vendor/symfony/console/Exception/RuntimeException.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/console/Formatter/NullOutputFormatter.php b/vendor/symfony/console/Formatter/NullOutputFormatter.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/console/Formatter/NullOutputFormatterStyle.php b/vendor/symfony/console/Formatter/NullOutputFormatterStyle.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/console/Formatter/OutputFormatter.php b/vendor/symfony/console/Formatter/OutputFormatter.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/console/Formatter/OutputFormatterInterface.php b/vendor/symfony/console/Formatter/OutputFormatterInterface.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/console/Formatter/OutputFormatterStyle.php b/vendor/symfony/console/Formatter/OutputFormatterStyle.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/console/Formatter/OutputFormatterStyleInterface.php b/vendor/symfony/console/Formatter/OutputFormatterStyleInterface.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/console/Formatter/OutputFormatterStyleStack.php b/vendor/symfony/console/Formatter/OutputFormatterStyleStack.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/console/Formatter/WrappableOutputFormatterInterface.php b/vendor/symfony/console/Formatter/WrappableOutputFormatterInterface.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/console/Helper/DebugFormatterHelper.php b/vendor/symfony/console/Helper/DebugFormatterHelper.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/console/Helper/DescriptorHelper.php b/vendor/symfony/console/Helper/DescriptorHelper.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/console/Helper/Dumper.php b/vendor/symfony/console/Helper/Dumper.php old mode 100755 new mode 100644 index a3b8e395..0cd01e61 --- a/vendor/symfony/console/Helper/Dumper.php +++ b/vendor/symfony/console/Helper/Dumper.php @@ -21,17 +21,13 @@ use Symfony\Component\VarDumper\Dumper\CliDumper; */ final class Dumper { - private OutputInterface $output; - private ?CliDumper $dumper; - private ?ClonerInterface $cloner; private \Closure $handler; - public function __construct(OutputInterface $output, ?CliDumper $dumper = null, ?ClonerInterface $cloner = null) - { - $this->output = $output; - $this->dumper = $dumper; - $this->cloner = $cloner; - + public function __construct( + private OutputInterface $output, + private ?CliDumper $dumper = null, + private ?ClonerInterface $cloner = null, + ) { if (class_exists(CliDumper::class)) { $this->handler = function ($var): string { $dumper = $this->dumper ??= new CliDumper(null, null, CliDumper::DUMP_LIGHT_ARRAY | CliDumper::DUMP_COMMA_SEPARATOR); diff --git a/vendor/symfony/console/Helper/FormatterHelper.php b/vendor/symfony/console/Helper/FormatterHelper.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/console/Helper/Helper.php b/vendor/symfony/console/Helper/Helper.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/console/Helper/HelperInterface.php b/vendor/symfony/console/Helper/HelperInterface.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/console/Helper/HelperSet.php b/vendor/symfony/console/Helper/HelperSet.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/console/Helper/InputAwareHelper.php b/vendor/symfony/console/Helper/InputAwareHelper.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/console/Helper/OutputWrapper.php b/vendor/symfony/console/Helper/OutputWrapper.php old mode 100755 new mode 100644 index 2ec819c7..0ea2b705 --- a/vendor/symfony/console/Helper/OutputWrapper.php +++ b/vendor/symfony/console/Helper/OutputWrapper.php @@ -49,7 +49,7 @@ final class OutputWrapper private const URL_PATTERN = 'https?://\S+'; public function __construct( - private bool $allowCutUrls = false + private bool $allowCutUrls = false, ) { } diff --git a/vendor/symfony/console/Helper/ProcessHelper.php b/vendor/symfony/console/Helper/ProcessHelper.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/console/Helper/ProgressBar.php b/vendor/symfony/console/Helper/ProgressBar.php old mode 100755 new mode 100644 index b406292b..7c22b7d5 --- a/vendor/symfony/console/Helper/ProgressBar.php +++ b/vendor/symfony/console/Helper/ProgressBar.php @@ -195,7 +195,7 @@ final class ProgressBar public function getMaxSteps(): int { - return $this->max; + return $this->max ?? 0; } public function getProgress(): int @@ -215,7 +215,7 @@ final class ProgressBar public function getBarOffset(): float { - return floor($this->max ? $this->percent * $this->barWidth : (null === $this->redrawFreq ? (int) (min(5, $this->barWidth / 15) * $this->writeCount) : $this->step) % $this->barWidth); + return floor(null !== $this->max ? $this->percent * $this->barWidth : (null === $this->redrawFreq ? (int) (min(5, $this->barWidth / 15) * $this->writeCount) : $this->step) % $this->barWidth); } public function getEstimated(): float @@ -253,7 +253,7 @@ final class ProgressBar public function getBarCharacter(): string { - return $this->barChar ?? ($this->max ? '=' : $this->emptyBarChar); + return $this->barChar ?? (null !== $this->max ? '=' : $this->emptyBarChar); } public function setEmptyBarCharacter(string $char): void @@ -315,7 +315,21 @@ final class ProgressBar */ public function iterate(iterable $iterable, ?int $max = null): iterable { - $this->start($max ?? (is_countable($iterable) ? \count($iterable) : 0)); + if (0 === $max) { + $max = null; + } + + $max ??= is_countable($iterable) ? \count($iterable) : null; + + if (0 === $max) { + $this->max = 0; + $this->stepWidth = 2; + $this->finish(); + + return; + } + + $this->start($max); foreach ($iterable as $key => $value) { yield $key => $value; @@ -373,11 +387,15 @@ final class ProgressBar $step = 0; } - $redrawFreq = $this->redrawFreq ?? (($this->max ?: 10) / 10); - $prevPeriod = (int) ($this->step / $redrawFreq); - $currPeriod = (int) ($step / $redrawFreq); + $redrawFreq = $this->redrawFreq ?? (($this->max ?? 10) / 10); + $prevPeriod = $redrawFreq ? (int) ($this->step / $redrawFreq) : 0; + $currPeriod = $redrawFreq ? (int) ($step / $redrawFreq) : 0; $this->step = $step; - $this->percent = $this->max ? (float) $this->step / $this->max : 0; + $this->percent = match ($this->max) { + null => 0, + 0 => 1, + default => (float) $this->step / $this->max, + }; $timeInterval = microtime(true) - $this->lastWriteTime; // Draw regardless of other limits @@ -398,11 +416,20 @@ final class ProgressBar } } - public function setMaxSteps(int $max): void + public function setMaxSteps(?int $max): void { + if (0 === $max) { + $max = null; + } + $this->format = null; - $this->max = max(0, $max); - $this->stepWidth = $this->max ? Helper::width((string) $this->max) : 4; + if (null === $max) { + $this->max = null; + $this->stepWidth = 4; + } else { + $this->max = max(0, $max); + $this->stepWidth = Helper::width((string) $this->max); + } } /** @@ -410,16 +437,16 @@ final class ProgressBar */ public function finish(): void { - if (!$this->max) { + if (null === $this->max) { $this->max = $this->step; } - if ($this->step === $this->max && !$this->overwrite) { + if (($this->step === $this->max || null === $this->max) && !$this->overwrite) { // prevent double 100% output return; } - $this->setProgress($this->max); + $this->setProgress($this->max ?? $this->step); } /** @@ -542,14 +569,14 @@ final class ProgressBar }, 'elapsed' => fn (self $bar) => Helper::formatTime(time() - $bar->getStartTime(), 2), 'remaining' => function (self $bar) { - if (!$bar->getMaxSteps()) { + if (null === $bar->getMaxSteps()) { throw new LogicException('Unable to display the remaining time if the maximum number of steps is not set.'); } return Helper::formatTime($bar->getRemaining(), 2); }, 'estimated' => function (self $bar) { - if (!$bar->getMaxSteps()) { + if (null === $bar->getMaxSteps()) { throw new LogicException('Unable to display the estimated time if the maximum number of steps is not set.'); } diff --git a/vendor/symfony/console/Helper/ProgressIndicator.php b/vendor/symfony/console/Helper/ProgressIndicator.php old mode 100755 new mode 100644 index 2ffac2ec..969d8353 --- a/vendor/symfony/console/Helper/ProgressIndicator.php +++ b/vendor/symfony/console/Helper/ProgressIndicator.php @@ -31,13 +31,11 @@ class ProgressIndicator 'very_verbose_no_ansi' => ' %message% (%elapsed:6s%, %memory:6s%)', ]; - private OutputInterface $output; private int $startTime; private ?string $format = null; private ?string $message = null; private array $indicatorValues; private int $indicatorCurrent; - private int $indicatorChangeInterval; private float $indicatorUpdateTime; private bool $started = false; @@ -50,9 +48,12 @@ class ProgressIndicator * @param int $indicatorChangeInterval Change interval in milliseconds * @param array|null $indicatorValues Animated indicator characters */ - public function __construct(OutputInterface $output, ?string $format = null, int $indicatorChangeInterval = 100, ?array $indicatorValues = null) - { - $this->output = $output; + public function __construct( + private OutputInterface $output, + ?string $format = null, + private int $indicatorChangeInterval = 100, + ?array $indicatorValues = null, + ) { $format ??= $this->determineBestFormat(); $indicatorValues ??= ['-', '\\', '|', '/']; @@ -63,7 +64,6 @@ class ProgressIndicator } $this->format = self::getFormatDefinition($format); - $this->indicatorChangeInterval = $indicatorChangeInterval; $this->indicatorValues = $indicatorValues; $this->startTime = time(); } diff --git a/vendor/symfony/console/Helper/QuestionHelper.php b/vendor/symfony/console/Helper/QuestionHelper.php old mode 100755 new mode 100644 index f66d7bc5..54825c6c --- a/vendor/symfony/console/Helper/QuestionHelper.php +++ b/vendor/symfony/console/Helper/QuestionHelper.php @@ -34,11 +34,6 @@ use function Symfony\Component\String\s; */ class QuestionHelper extends Helper { - /** - * @var resource|null - */ - private $inputStream; - private static bool $stty = true; private static bool $stdinIsInteractive; @@ -59,16 +54,15 @@ class QuestionHelper extends Helper return $this->getDefaultAnswer($question); } - if ($input instanceof StreamableInputInterface && $stream = $input->getStream()) { - $this->inputStream = $stream; - } + $inputStream = $input instanceof StreamableInputInterface ? $input->getStream() : null; + $inputStream ??= STDIN; try { if (!$question->getValidator()) { - return $this->doAsk($output, $question); + return $this->doAsk($inputStream, $output, $question); } - $interviewer = fn () => $this->doAsk($output, $question); + $interviewer = fn () => $this->doAsk($inputStream, $output, $question); return $this->validateAttempts($interviewer, $output, $question); } catch (MissingInputException $exception) { @@ -98,13 +92,14 @@ class QuestionHelper extends Helper /** * Asks the question to the user. * + * @param resource $inputStream + * * @throws RuntimeException In case the fallback is deactivated and the response cannot be hidden */ - private function doAsk(OutputInterface $output, Question $question): mixed + private function doAsk($inputStream, OutputInterface $output, Question $question): mixed { $this->writePrompt($output, $question); - $inputStream = $this->inputStream ?: \STDIN; $autocomplete = $question->getAutocompleterCallback(); if (null === $autocomplete || !self::$stty || !Terminal::hasSttyAvailable()) { diff --git a/vendor/symfony/console/Helper/SymfonyQuestionHelper.php b/vendor/symfony/console/Helper/SymfonyQuestionHelper.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/console/Helper/Table.php b/vendor/symfony/console/Helper/Table.php old mode 100755 new mode 100644 index 9f538d63..09709a28 --- a/vendor/symfony/console/Helper/Table.php +++ b/vendor/symfony/console/Helper/Table.php @@ -45,7 +45,6 @@ class Table private array $rows = []; private array $effectiveColumnWidths = []; private int $numberOfColumns; - private OutputInterface $output; private TableStyle $style; private array $columnStyles = []; private array $columnWidths = []; @@ -55,10 +54,9 @@ class Table private static array $styles; - public function __construct(OutputInterface $output) - { - $this->output = $output; - + public function __construct( + private OutputInterface $output, + ) { self::$styles ??= self::initStyles(); $this->setStyle('default'); @@ -721,7 +719,7 @@ class Table foreach ($unmergedRows as $unmergedRowKey => $unmergedRow) { // we need to know if $unmergedRow will be merged or inserted into $rows - if (isset($rows[$unmergedRowKey]) && \is_array($rows[$unmergedRowKey]) && ($this->getNumberOfColumns($rows[$unmergedRowKey]) + $this->getNumberOfColumns($unmergedRows[$unmergedRowKey]) <= $this->numberOfColumns)) { + if (isset($rows[$unmergedRowKey]) && \is_array($rows[$unmergedRowKey]) && ($this->getNumberOfColumns($rows[$unmergedRowKey]) + $this->getNumberOfColumns($unmergedRow) <= $this->numberOfColumns)) { foreach ($unmergedRow as $cellKey => $cell) { // insert cell into row at cellKey position array_splice($rows[$unmergedRowKey], $cellKey, 0, [$cell]); @@ -729,8 +727,8 @@ class Table } else { $row = $this->copyRow($rows, $unmergedRowKey - 1); foreach ($unmergedRow as $column => $cell) { - if (!empty($cell)) { - $row[$column] = $unmergedRow[$column]; + if ($cell) { + $row[$column] = $cell; } } array_splice($rows, $unmergedRowKey, 0, [$row]); diff --git a/vendor/symfony/console/Helper/TableCell.php b/vendor/symfony/console/Helper/TableCell.php old mode 100755 new mode 100644 index 394b2bc9..1c4eeea2 --- a/vendor/symfony/console/Helper/TableCell.php +++ b/vendor/symfony/console/Helper/TableCell.php @@ -18,17 +18,16 @@ use Symfony\Component\Console\Exception\InvalidArgumentException; */ class TableCell { - private string $value; private array $options = [ 'rowspan' => 1, 'colspan' => 1, 'style' => null, ]; - public function __construct(string $value = '', array $options = []) - { - $this->value = $value; - + public function __construct( + private string $value = '', + array $options = [], + ) { // check option names if ($diff = array_diff(array_keys($options), array_keys($this->options))) { throw new InvalidArgumentException(sprintf('The TableCell does not support the following options: \'%s\'.', implode('\', \'', $diff))); diff --git a/vendor/symfony/console/Helper/TableCellStyle.php b/vendor/symfony/console/Helper/TableCellStyle.php old mode 100755 new mode 100644 index 9419dcb4..49b97f85 --- a/vendor/symfony/console/Helper/TableCellStyle.php +++ b/vendor/symfony/console/Helper/TableCellStyle.php @@ -67,7 +67,7 @@ class TableCellStyle { return array_filter( $this->getOptions(), - fn ($key) => \in_array($key, self::TAG_OPTIONS) && isset($this->options[$key]), + fn ($key) => \in_array($key, self::TAG_OPTIONS, true) && isset($this->options[$key]), \ARRAY_FILTER_USE_KEY ); } diff --git a/vendor/symfony/console/Helper/TableRows.php b/vendor/symfony/console/Helper/TableRows.php old mode 100755 new mode 100644 index 97d07726..fb2dc278 --- a/vendor/symfony/console/Helper/TableRows.php +++ b/vendor/symfony/console/Helper/TableRows.php @@ -16,11 +16,9 @@ namespace Symfony\Component\Console\Helper; */ class TableRows implements \IteratorAggregate { - private \Closure $generator; - - public function __construct(\Closure $generator) - { - $this->generator = $generator; + public function __construct( + private \Closure $generator, + ) { } public function getIterator(): \Traversable diff --git a/vendor/symfony/console/Helper/TableSeparator.php b/vendor/symfony/console/Helper/TableSeparator.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/console/Helper/TableStyle.php b/vendor/symfony/console/Helper/TableStyle.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/console/Input/ArgvInput.php b/vendor/symfony/console/Input/ArgvInput.php old mode 100755 new mode 100644 index 8621d62c..95703ba5 --- a/vendor/symfony/console/Input/ArgvInput.php +++ b/vendor/symfony/console/Input/ArgvInput.php @@ -40,9 +40,11 @@ use Symfony\Component\Console\Exception\RuntimeException; */ class ArgvInput extends Input { + /** @var list */ private array $tokens; private array $parsed; + /** @param list|null $argv */ public function __construct(?array $argv = null, ?InputDefinition $definition = null) { $argv ??= $_SERVER['argv'] ?? []; @@ -55,6 +57,7 @@ class ArgvInput extends Input parent::__construct($definition); } + /** @param list $tokens */ protected function setTokens(array $tokens): void { $this->tokens = $tokens; @@ -342,6 +345,35 @@ class ArgvInput extends Input return $default; } + /** + * Returns un-parsed and not validated tokens. + * + * @param bool $strip Whether to return the raw parameters (false) or the values after the command name (true) + * + * @return list + */ + public function getRawTokens(bool $strip = false): array + { + if (!$strip) { + return $this->tokens; + } + + $parameters = []; + $keep = false; + foreach ($this->tokens as $value) { + if (!$keep && $value === $this->getFirstArgument()) { + $keep = true; + + continue; + } + if ($keep) { + $parameters[] = $value; + } + } + + return $parameters; + } + /** * Returns a stringified representation of the args passed to the command. */ diff --git a/vendor/symfony/console/Input/ArrayInput.php b/vendor/symfony/console/Input/ArrayInput.php old mode 100755 new mode 100644 index 9f1fdafc..d27ff411 --- a/vendor/symfony/console/Input/ArrayInput.php +++ b/vendor/symfony/console/Input/ArrayInput.php @@ -25,12 +25,10 @@ use Symfony\Component\Console\Exception\InvalidOptionException; */ class ArrayInput extends Input { - private array $parameters; - - public function __construct(array $parameters, ?InputDefinition $definition = null) - { - $this->parameters = $parameters; - + public function __construct( + private array $parameters, + ?InputDefinition $definition = null, + ) { parent::__construct($definition); } diff --git a/vendor/symfony/console/Input/Input.php b/vendor/symfony/console/Input/Input.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/console/Input/InputArgument.php b/vendor/symfony/console/Input/InputArgument.php old mode 100755 new mode 100644 index bcc464c9..a5d94927 --- a/vendor/symfony/console/Input/InputArgument.php +++ b/vendor/symfony/console/Input/InputArgument.php @@ -25,37 +25,47 @@ use Symfony\Component\Console\Exception\LogicException; */ class InputArgument { + /** + * Providing an argument is required (e.g. just 'app:foo' is not allowed). + */ public const REQUIRED = 1; + + /** + * Providing an argument is optional (e.g. 'app:foo' and 'app:foo bar' are both allowed). This is the default behavior of arguments. + */ public const OPTIONAL = 2; + + /** + * The argument accepts multiple values and turn them into an array (e.g. 'app:foo bar baz' will result in value ['bar', 'baz']). + */ public const IS_ARRAY = 4; - private string $name; private int $mode; - private string|int|bool|array|null|float $default; - private array|\Closure $suggestedValues; - private string $description; + private string|int|bool|array|float|null $default; /** * @param string $name The argument name - * @param int|null $mode The argument mode: a bit mask of self::REQUIRED, self::OPTIONAL and self::IS_ARRAY + * @param int-mask-of|null $mode The argument mode: a bit mask of self::REQUIRED, self::OPTIONAL and self::IS_ARRAY * @param string $description A description text * @param string|bool|int|float|array|null $default The default value (for self::OPTIONAL mode only) * @param array|\Closure(CompletionInput,CompletionSuggestions):list $suggestedValues The values used for input completion * * @throws InvalidArgumentException When argument mode is not valid */ - public function __construct(string $name, ?int $mode = null, string $description = '', string|bool|int|float|array|null $default = null, \Closure|array $suggestedValues = []) - { + public function __construct( + private string $name, + ?int $mode = null, + private string $description = '', + string|bool|int|float|array|null $default = null, + private \Closure|array $suggestedValues = [], + ) { if (null === $mode) { $mode = self::OPTIONAL; - } elseif ($mode > 7 || $mode < 1) { + } elseif ($mode >= (self::IS_ARRAY << 1) || $mode < 1) { throw new InvalidArgumentException(sprintf('Argument mode "%s" is not valid.', $mode)); } - $this->name = $name; $this->mode = $mode; - $this->description = $description; - $this->suggestedValues = $suggestedValues; $this->setDefault($default); } @@ -90,8 +100,6 @@ class InputArgument /** * Sets the default value. - * - * @throws LogicException When incorrect default value is given */ public function setDefault(string|bool|int|float|array|null $default): void { @@ -118,13 +126,16 @@ class InputArgument return $this->default; } + /** + * Returns true if the argument has values for input completion. + */ public function hasCompletion(): bool { return [] !== $this->suggestedValues; } /** - * Adds suggestions to $suggestions for the current completion input. + * Supplies suggestions when command resolves possible completion options for input. * * @see Command::complete() */ diff --git a/vendor/symfony/console/Input/InputAwareInterface.php b/vendor/symfony/console/Input/InputAwareInterface.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/console/Input/InputDefinition.php b/vendor/symfony/console/Input/InputDefinition.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/console/Input/InputInterface.php b/vendor/symfony/console/Input/InputInterface.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/console/Input/InputOption.php b/vendor/symfony/console/Input/InputOption.php old mode 100755 new mode 100644 index 56691c3b..617c348d --- a/vendor/symfony/console/Input/InputOption.php +++ b/vendor/symfony/console/Input/InputOption.php @@ -46,32 +46,36 @@ class InputOption public const VALUE_IS_ARRAY = 8; /** - * The option may have either positive or negative value (e.g. --ansi or --no-ansi). + * The option allows passing a negated variant (e.g. --ansi or --no-ansi). */ public const VALUE_NEGATABLE = 16; private string $name; - private string|array|null $shortcut; + private ?string $shortcut; private int $mode; - private string|int|bool|array|null|float $default; - private array|\Closure $suggestedValues; - private string $description; + private string|int|bool|array|float|null $default; /** * @param string|array|null $shortcut The shortcuts, can be null, a string of shortcuts delimited by | or an array of shortcuts - * @param int|null $mode The option mode: One of the VALUE_* constants + * @param int-mask-of|null $mode The option mode: One of the VALUE_* constants * @param string|bool|int|float|array|null $default The default value (must be null for self::VALUE_NONE) * @param array|\Closure(CompletionInput,CompletionSuggestions):list $suggestedValues The values used for input completion * * @throws InvalidArgumentException If option mode is invalid or incompatible */ - public function __construct(string $name, string|array|null $shortcut = null, ?int $mode = null, string $description = '', string|bool|int|float|array|null $default = null, array|\Closure $suggestedValues = []) - { + public function __construct( + string $name, + string|array|null $shortcut = null, + ?int $mode = null, + private string $description = '', + string|bool|int|float|array|null $default = null, + private array|\Closure $suggestedValues = [], + ) { if (str_starts_with($name, '--')) { $name = substr($name, 2); } - if (empty($name)) { + if (!$name) { throw new InvalidArgumentException('An option name cannot be empty.'); } @@ -101,8 +105,6 @@ class InputOption $this->name = $name; $this->shortcut = $shortcut; $this->mode = $mode; - $this->description = $description; - $this->suggestedValues = $suggestedValues; if ($suggestedValues && !$this->acceptValue()) { throw new LogicException('Cannot set suggested values if the option does not accept a value.'); @@ -173,11 +175,19 @@ class InputOption return self::VALUE_IS_ARRAY === (self::VALUE_IS_ARRAY & $this->mode); } + /** + * Returns true if the option allows passing a negated variant. + * + * @return bool true if mode is self::VALUE_NEGATABLE, false otherwise + */ public function isNegatable(): bool { return self::VALUE_NEGATABLE === (self::VALUE_NEGATABLE & $this->mode); } + /** + * Sets the default value. + */ public function setDefault(string|bool|int|float|array|null $default): void { if (self::VALUE_NONE === (self::VALUE_NONE & $this->mode) && null !== $default) { @@ -211,13 +221,16 @@ class InputOption return $this->description; } + /** + * Returns true if the option has values for input completion. + */ public function hasCompletion(): bool { return [] !== $this->suggestedValues; } /** - * Adds suggestions to $suggestions for the current completion input. + * Supplies suggestions when command resolves possible completion options for input. * * @see Command::complete() */ diff --git a/vendor/symfony/console/Input/StreamableInputInterface.php b/vendor/symfony/console/Input/StreamableInputInterface.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/console/Input/StringInput.php b/vendor/symfony/console/Input/StringInput.php old mode 100755 new mode 100644 index 33f0f4b3..83570014 --- a/vendor/symfony/console/Input/StringInput.php +++ b/vendor/symfony/console/Input/StringInput.php @@ -40,6 +40,8 @@ class StringInput extends ArgvInput /** * Tokenizes a string. * + * @return list + * * @throws InvalidArgumentException When unable to parse input (should never happen) */ private function tokenize(string $input): array diff --git a/vendor/symfony/console/LICENSE b/vendor/symfony/console/LICENSE old mode 100755 new mode 100644 diff --git a/vendor/symfony/console/Logger/ConsoleLogger.php b/vendor/symfony/console/Logger/ConsoleLogger.php old mode 100755 new mode 100644 index fddef50c..ad6e49ce --- a/vendor/symfony/console/Logger/ConsoleLogger.php +++ b/vendor/symfony/console/Logger/ConsoleLogger.php @@ -29,7 +29,6 @@ class ConsoleLogger extends AbstractLogger public const INFO = 'info'; public const ERROR = 'error'; - private OutputInterface $output; private array $verbosityLevelMap = [ LogLevel::EMERGENCY => OutputInterface::VERBOSITY_NORMAL, LogLevel::ALERT => OutputInterface::VERBOSITY_NORMAL, @@ -52,9 +51,11 @@ class ConsoleLogger extends AbstractLogger ]; private bool $errored = false; - public function __construct(OutputInterface $output, array $verbosityLevelMap = [], array $formatLevelMap = []) - { - $this->output = $output; + public function __construct( + private OutputInterface $output, + array $verbosityLevelMap = [], + array $formatLevelMap = [], + ) { $this->verbosityLevelMap = $verbosityLevelMap + $this->verbosityLevelMap; $this->formatLevelMap = $formatLevelMap + $this->formatLevelMap; } diff --git a/vendor/symfony/console/Messenger/RunCommandContext.php b/vendor/symfony/console/Messenger/RunCommandContext.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/console/Messenger/RunCommandMessage.php b/vendor/symfony/console/Messenger/RunCommandMessage.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/console/Messenger/RunCommandMessageHandler.php b/vendor/symfony/console/Messenger/RunCommandMessageHandler.php old mode 100755 new mode 100644 index 14f9c176..1bc49949 --- a/vendor/symfony/console/Messenger/RunCommandMessageHandler.php +++ b/vendor/symfony/console/Messenger/RunCommandMessageHandler.php @@ -22,8 +22,9 @@ use Symfony\Component\Console\Output\BufferedOutput; */ final class RunCommandMessageHandler { - public function __construct(private readonly Application $application) - { + public function __construct( + private readonly Application $application, + ) { } public function __invoke(RunCommandMessage $message): RunCommandContext diff --git a/vendor/symfony/console/Output/AnsiColorMode.php b/vendor/symfony/console/Output/AnsiColorMode.php old mode 100755 new mode 100644 index 5f9f744f..ca40ffb7 --- a/vendor/symfony/console/Output/AnsiColorMode.php +++ b/vendor/symfony/console/Output/AnsiColorMode.php @@ -63,7 +63,7 @@ enum AnsiColorMode return match ($this) { self::Ansi4 => (string) $this->convertFromRGB($r, $g, $b), self::Ansi8 => '8;5;'.((string) $this->convertFromRGB($r, $g, $b)), - self::Ansi24 => sprintf('8;2;%d;%d;%d', $r, $g, $b) + self::Ansi24 => sprintf('8;2;%d;%d;%d', $r, $g, $b), }; } @@ -72,7 +72,7 @@ enum AnsiColorMode return match ($this) { self::Ansi4 => $this->degradeHexColorToAnsi4($r, $g, $b), self::Ansi8 => $this->degradeHexColorToAnsi8($r, $g, $b), - default => throw new InvalidArgumentException("RGB cannot be converted to {$this->name}.") + default => throw new InvalidArgumentException("RGB cannot be converted to {$this->name}."), }; } diff --git a/vendor/symfony/console/Output/BufferedOutput.php b/vendor/symfony/console/Output/BufferedOutput.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/console/Output/ConsoleOutput.php b/vendor/symfony/console/Output/ConsoleOutput.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/console/Output/ConsoleOutputInterface.php b/vendor/symfony/console/Output/ConsoleOutputInterface.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/console/Output/ConsoleSectionOutput.php b/vendor/symfony/console/Output/ConsoleSectionOutput.php old mode 100755 new mode 100644 index ded97c70..09aa7fe9 --- a/vendor/symfony/console/Output/ConsoleSectionOutput.php +++ b/vendor/symfony/console/Output/ConsoleSectionOutput.php @@ -63,7 +63,7 @@ class ConsoleSectionOutput extends StreamOutput */ public function clear(?int $lines = null): void { - if (empty($this->content) || !$this->isDecorated()) { + if (!$this->content || !$this->isDecorated()) { return; } diff --git a/vendor/symfony/console/Output/NullOutput.php b/vendor/symfony/console/Output/NullOutput.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/console/Output/Output.php b/vendor/symfony/console/Output/Output.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/console/Output/OutputInterface.php b/vendor/symfony/console/Output/OutputInterface.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/console/Output/StreamOutput.php b/vendor/symfony/console/Output/StreamOutput.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/console/Output/TrimmedBufferOutput.php b/vendor/symfony/console/Output/TrimmedBufferOutput.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/console/Question/ChoiceQuestion.php b/vendor/symfony/console/Question/ChoiceQuestion.php old mode 100755 new mode 100644 index e449ff68..0ccad051 --- a/vendor/symfony/console/Question/ChoiceQuestion.php +++ b/vendor/symfony/console/Question/ChoiceQuestion.php @@ -20,7 +20,6 @@ use Symfony\Component\Console\Exception\InvalidArgumentException; */ class ChoiceQuestion extends Question { - private array $choices; private bool $multiselect = false; private string $prompt = ' > '; private string $errorMessage = 'Value "%s" is invalid'; @@ -30,15 +29,17 @@ class ChoiceQuestion extends Question * @param array $choices The list of available choices * @param mixed $default The default answer to return */ - public function __construct(string $question, array $choices, mixed $default = null) - { + public function __construct( + string $question, + private array $choices, + mixed $default = null, + ) { if (!$choices) { throw new \LogicException('Choice question must have at least 1 choice available.'); } parent::__construct($question, $default); - $this->choices = $choices; $this->setValidator($this->getDefaultValidator()); $this->setAutocompleterValues($choices); } diff --git a/vendor/symfony/console/Question/ConfirmationQuestion.php b/vendor/symfony/console/Question/ConfirmationQuestion.php old mode 100755 new mode 100644 index 40eab242..951d6814 --- a/vendor/symfony/console/Question/ConfirmationQuestion.php +++ b/vendor/symfony/console/Question/ConfirmationQuestion.php @@ -18,18 +18,18 @@ namespace Symfony\Component\Console\Question; */ class ConfirmationQuestion extends Question { - private string $trueAnswerRegex; - /** * @param string $question The question to ask to the user * @param bool $default The default answer to return, true or false * @param string $trueAnswerRegex A regex to match the "yes" answer */ - public function __construct(string $question, bool $default = true, string $trueAnswerRegex = '/^y/i') - { + public function __construct( + string $question, + bool $default = true, + private string $trueAnswerRegex = '/^y/i', + ) { parent::__construct($question, $default); - $this->trueAnswerRegex = $trueAnswerRegex; $this->setNormalizer($this->getDefaultNormalizer()); } diff --git a/vendor/symfony/console/Question/Question.php b/vendor/symfony/console/Question/Question.php old mode 100755 new mode 100644 index 6afe8ea6..46a60c79 --- a/vendor/symfony/console/Question/Question.php +++ b/vendor/symfony/console/Question/Question.php @@ -21,13 +21,11 @@ use Symfony\Component\Console\Exception\LogicException; */ class Question { - private string $question; private ?int $attempts = null; private bool $hidden = false; private bool $hiddenFallback = true; private ?\Closure $autocompleterCallback = null; private ?\Closure $validator = null; - private string|int|bool|null|float $default; private ?\Closure $normalizer = null; private bool $trimmable = true; private bool $multiline = false; @@ -36,10 +34,10 @@ class Question * @param string $question The question to ask to the user * @param string|bool|int|float|null $default The default answer to return if the user enters nothing */ - public function __construct(string $question, string|bool|int|float|null $default = null) - { - $this->question = $question; - $this->default = $default; + public function __construct( + private string $question, + private string|bool|int|float|null $default = null, + ) { } /** diff --git a/vendor/symfony/console/README.md b/vendor/symfony/console/README.md old mode 100755 new mode 100644 index ded2bc11..92f70e71 --- a/vendor/symfony/console/README.md +++ b/vendor/symfony/console/README.md @@ -7,14 +7,7 @@ interfaces. Sponsor ------- -The Console component for Symfony 7.0 is [backed][1] by [Les-Tilleuls.coop][2]. - -Les-Tilleuls.coop is a team of 70+ Symfony experts who can help you design, develop and -fix your projects. They provide a wide range of professional services including development, -consulting, coaching, training and audits. They also are highly skilled in JS, Go and DevOps. -They are a worker cooperative! - -Help Symfony by [sponsoring][3] its development! +Help Symfony by [sponsoring][1] its development! Resources --------- @@ -31,6 +24,4 @@ Credits `Resources/bin/hiddeninput.exe` is a third party binary provided within this component. Find sources and license at https://github.com/Seldaek/hidden-input. -[1]: https://symfony.com/backers -[2]: https://les-tilleuls.coop -[3]: https://symfony.com/sponsor +[1]: https://symfony.com/sponsor diff --git a/vendor/symfony/console/Resources/completion.bash b/vendor/symfony/console/Resources/completion.bash old mode 100755 new mode 100644 diff --git a/vendor/symfony/console/Resources/completion.fish b/vendor/symfony/console/Resources/completion.fish old mode 100755 new mode 100644 index 1c34292a..1853dd80 --- a/vendor/symfony/console/Resources/completion.fish +++ b/vendor/symfony/console/Resources/completion.fish @@ -19,11 +19,7 @@ function _sf_{{ COMMAND_NAME }} set completecmd $completecmd "-c$c" - set sfcomplete ($completecmd) - - for i in $sfcomplete - echo $i - end + $completecmd end complete -c '{{ COMMAND_NAME }}' -a '(_sf_{{ COMMAND_NAME }})' -f diff --git a/vendor/symfony/console/Resources/completion.zsh b/vendor/symfony/console/Resources/completion.zsh old mode 100755 new mode 100644 diff --git a/vendor/symfony/console/SignalRegistry/SignalMap.php b/vendor/symfony/console/SignalRegistry/SignalMap.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/console/SignalRegistry/SignalRegistry.php b/vendor/symfony/console/SignalRegistry/SignalRegistry.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/console/SingleCommandApplication.php b/vendor/symfony/console/SingleCommandApplication.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/console/Style/OutputStyle.php b/vendor/symfony/console/Style/OutputStyle.php old mode 100755 new mode 100644 index 05076c00..9f62ea31 --- a/vendor/symfony/console/Style/OutputStyle.php +++ b/vendor/symfony/console/Style/OutputStyle.php @@ -23,11 +23,9 @@ use Symfony\Component\Console\Output\OutputInterface; */ abstract class OutputStyle implements OutputInterface, StyleInterface { - private OutputInterface $output; - - public function __construct(OutputInterface $output) - { - $this->output = $output; + public function __construct( + private OutputInterface $output, + ) { } public function newLine(int $count = 1): void diff --git a/vendor/symfony/console/Style/StyleInterface.php b/vendor/symfony/console/Style/StyleInterface.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/console/Style/SymfonyStyle.php b/vendor/symfony/console/Style/SymfonyStyle.php old mode 100755 new mode 100644 index ca557d6c..19ad892e --- a/vendor/symfony/console/Style/SymfonyStyle.php +++ b/vendor/symfony/console/Style/SymfonyStyle.php @@ -40,22 +40,21 @@ class SymfonyStyle extends OutputStyle { public const MAX_LINE_LENGTH = 120; - private InputInterface $input; - private OutputInterface $output; private SymfonyQuestionHelper $questionHelper; private ProgressBar $progressBar; private int $lineLength; private TrimmedBufferOutput $bufferedOutput; - public function __construct(InputInterface $input, OutputInterface $output) - { - $this->input = $input; + public function __construct( + private InputInterface $input, + private OutputInterface $output, + ) { $this->bufferedOutput = new TrimmedBufferOutput(\DIRECTORY_SEPARATOR === '\\' ? 4 : 2, $output->getVerbosity(), false, clone $output->getFormatter()); // Windows cmd wraps lines as soon as the terminal width is reached, whether there are following chars or not. $width = (new Terminal())->getWidth() ?: self::MAX_LINE_LENGTH; $this->lineLength = min($width - (int) (\DIRECTORY_SEPARATOR === '\\'), self::MAX_LINE_LENGTH); - parent::__construct($this->output = $output); + parent::__construct($output); } /** diff --git a/vendor/symfony/console/Terminal.php b/vendor/symfony/console/Terminal.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/console/Tester/ApplicationTester.php b/vendor/symfony/console/Tester/ApplicationTester.php old mode 100755 new mode 100644 index 58aee54d..cebb6f8e --- a/vendor/symfony/console/Tester/ApplicationTester.php +++ b/vendor/symfony/console/Tester/ApplicationTester.php @@ -28,11 +28,9 @@ class ApplicationTester { use TesterTrait; - private Application $application; - - public function __construct(Application $application) - { - $this->application = $application; + public function __construct( + private Application $application, + ) { } /** diff --git a/vendor/symfony/console/Tester/CommandCompletionTester.php b/vendor/symfony/console/Tester/CommandCompletionTester.php old mode 100755 new mode 100644 index a90fe52e..76cbaf14 --- a/vendor/symfony/console/Tester/CommandCompletionTester.php +++ b/vendor/symfony/console/Tester/CommandCompletionTester.php @@ -22,11 +22,9 @@ use Symfony\Component\Console\Completion\CompletionSuggestions; */ class CommandCompletionTester { - private Command $command; - - public function __construct(Command $command) - { - $this->command = $command; + public function __construct( + private Command $command, + ) { } /** diff --git a/vendor/symfony/console/Tester/CommandTester.php b/vendor/symfony/console/Tester/CommandTester.php old mode 100755 new mode 100644 index 2ff813b7..d39cde7f --- a/vendor/symfony/console/Tester/CommandTester.php +++ b/vendor/symfony/console/Tester/CommandTester.php @@ -24,11 +24,9 @@ class CommandTester { use TesterTrait; - private Command $command; - - public function __construct(Command $command) - { - $this->command = $command; + public function __construct( + private Command $command, + ) { } /** diff --git a/vendor/symfony/console/Tester/Constraint/CommandIsSuccessful.php b/vendor/symfony/console/Tester/Constraint/CommandIsSuccessful.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/console/Tester/TesterTrait.php b/vendor/symfony/console/Tester/TesterTrait.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/console/composer.json b/vendor/symfony/console/composer.json old mode 100755 new mode 100644 diff --git a/vendor/symfony/deprecation-contracts/CHANGELOG.md b/vendor/symfony/deprecation-contracts/CHANGELOG.md old mode 100755 new mode 100644 diff --git a/vendor/symfony/deprecation-contracts/LICENSE b/vendor/symfony/deprecation-contracts/LICENSE old mode 100755 new mode 100644 diff --git a/vendor/symfony/deprecation-contracts/README.md b/vendor/symfony/deprecation-contracts/README.md old mode 100755 new mode 100644 diff --git a/vendor/symfony/deprecation-contracts/composer.json b/vendor/symfony/deprecation-contracts/composer.json old mode 100755 new mode 100644 index c6d02d87..ceb6c079 --- a/vendor/symfony/deprecation-contracts/composer.json +++ b/vendor/symfony/deprecation-contracts/composer.json @@ -25,7 +25,7 @@ "minimum-stability": "dev", "extra": { "branch-alias": { - "dev-main": "3.4-dev" + "dev-main": "3.5-dev" }, "thanks": { "name": "symfony/contracts", diff --git a/vendor/symfony/deprecation-contracts/function.php b/vendor/symfony/deprecation-contracts/function.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/event-dispatcher-contracts/CHANGELOG.md b/vendor/symfony/event-dispatcher-contracts/CHANGELOG.md old mode 100755 new mode 100644 diff --git a/vendor/symfony/event-dispatcher-contracts/Event.php b/vendor/symfony/event-dispatcher-contracts/Event.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/event-dispatcher-contracts/EventDispatcherInterface.php b/vendor/symfony/event-dispatcher-contracts/EventDispatcherInterface.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/event-dispatcher-contracts/LICENSE b/vendor/symfony/event-dispatcher-contracts/LICENSE old mode 100755 new mode 100644 diff --git a/vendor/symfony/event-dispatcher-contracts/README.md b/vendor/symfony/event-dispatcher-contracts/README.md old mode 100755 new mode 100644 diff --git a/vendor/symfony/event-dispatcher-contracts/composer.json b/vendor/symfony/event-dispatcher-contracts/composer.json old mode 100755 new mode 100644 index 3618d53e..35956eb8 --- a/vendor/symfony/event-dispatcher-contracts/composer.json +++ b/vendor/symfony/event-dispatcher-contracts/composer.json @@ -25,7 +25,7 @@ "minimum-stability": "dev", "extra": { "branch-alias": { - "dev-main": "3.4-dev" + "dev-main": "3.5-dev" }, "thanks": { "name": "symfony/contracts", diff --git a/vendor/symfony/event-dispatcher/Attribute/AsEventListener.php b/vendor/symfony/event-dispatcher/Attribute/AsEventListener.php old mode 100755 new mode 100644 index bb931b82..590ada9e --- a/vendor/symfony/event-dispatcher/Attribute/AsEventListener.php +++ b/vendor/symfony/event-dispatcher/Attribute/AsEventListener.php @@ -19,6 +19,12 @@ namespace Symfony\Component\EventDispatcher\Attribute; #[\Attribute(\Attribute::TARGET_CLASS | \Attribute::TARGET_METHOD | \Attribute::IS_REPEATABLE)] class AsEventListener { + /** + * @param string|null $event The event name to listen to + * @param string|null $method The method to run when the listened event is triggered + * @param int $priority The priority of this listener if several are declared for the same event + * @param string|null $dispatcher The service id of the event dispatcher to listen to + */ public function __construct( public ?string $event = null, public ?string $method = null, diff --git a/vendor/symfony/event-dispatcher/CHANGELOG.md b/vendor/symfony/event-dispatcher/CHANGELOG.md old mode 100755 new mode 100644 diff --git a/vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php b/vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php old mode 100755 new mode 100644 index a389acfb..72ce5265 --- a/vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php +++ b/vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php @@ -30,25 +30,20 @@ use Symfony\Contracts\Service\ResetInterface; */ class TraceableEventDispatcher implements EventDispatcherInterface, ResetInterface { - protected ?LoggerInterface $logger; - protected Stopwatch $stopwatch; - /** * @var \SplObjectStorage|null */ private ?\SplObjectStorage $callStack = null; - private EventDispatcherInterface $dispatcher; private array $wrappedListeners = []; private array $orphanedEvents = []; - private ?RequestStack $requestStack; private string $currentRequestHash = ''; - public function __construct(EventDispatcherInterface $dispatcher, Stopwatch $stopwatch, ?LoggerInterface $logger = null, ?RequestStack $requestStack = null) - { - $this->dispatcher = $dispatcher; - $this->stopwatch = $stopwatch; - $this->logger = $logger; - $this->requestStack = $requestStack; + public function __construct( + private EventDispatcherInterface $dispatcher, + protected Stopwatch $stopwatch, + protected ?LoggerInterface $logger = null, + private ?RequestStack $requestStack = null, + ) { } public function addListener(string $eventName, callable|array $listener, int $priority = 0): void diff --git a/vendor/symfony/event-dispatcher/Debug/WrappedListener.php b/vendor/symfony/event-dispatcher/Debug/WrappedListener.php old mode 100755 new mode 100644 index 240d1d29..b83115bb --- a/vendor/symfony/event-dispatcher/Debug/WrappedListener.php +++ b/vendor/symfony/event-dispatcher/Debug/WrappedListener.php @@ -26,21 +26,20 @@ final class WrappedListener private string $name; private bool $called = false; private bool $stoppedPropagation = false; - private Stopwatch $stopwatch; - private ?EventDispatcherInterface $dispatcher; private string $pretty; private string $callableRef; private ClassStub|string $stub; - private ?int $priority = null; private static bool $hasClassStub; - public function __construct(callable|array $listener, ?string $name, Stopwatch $stopwatch, ?EventDispatcherInterface $dispatcher = null, ?int $priority = null) - { + public function __construct( + callable|array $listener, + ?string $name, + private Stopwatch $stopwatch, + private ?EventDispatcherInterface $dispatcher = null, + private ?int $priority = null, + ) { $this->listener = $listener; $this->optimizedListener = $listener instanceof \Closure ? $listener : (\is_callable($listener) ? $listener(...) : null); - $this->stopwatch = $stopwatch; - $this->dispatcher = $dispatcher; - $this->priority = $priority; if (\is_array($listener)) { [$this->name, $this->callableRef] = $this->parseListener($listener); @@ -48,7 +47,7 @@ final class WrappedListener $this->callableRef .= '::'.$listener[1]; } elseif ($listener instanceof \Closure) { $r = new \ReflectionFunction($listener); - if (str_contains($r->name, '{closure}')) { + if ($r->isAnonymous()) { $this->pretty = $this->name = 'closure'; } elseif ($class = $r->getClosureCalledClass()) { $this->name = $class->name; diff --git a/vendor/symfony/event-dispatcher/DependencyInjection/AddEventAliasesPass.php b/vendor/symfony/event-dispatcher/DependencyInjection/AddEventAliasesPass.php old mode 100755 new mode 100644 index 13b4336a..53089920 --- a/vendor/symfony/event-dispatcher/DependencyInjection/AddEventAliasesPass.php +++ b/vendor/symfony/event-dispatcher/DependencyInjection/AddEventAliasesPass.php @@ -21,11 +21,9 @@ use Symfony\Component\DependencyInjection\ContainerBuilder; */ class AddEventAliasesPass implements CompilerPassInterface { - private array $eventAliases; - - public function __construct(array $eventAliases) - { - $this->eventAliases = $eventAliases; + public function __construct( + private array $eventAliases, + ) { } public function process(ContainerBuilder $container): void diff --git a/vendor/symfony/event-dispatcher/DependencyInjection/RegisterListenersPass.php b/vendor/symfony/event-dispatcher/DependencyInjection/RegisterListenersPass.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/event-dispatcher/EventDispatcher.php b/vendor/symfony/event-dispatcher/EventDispatcher.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/event-dispatcher/EventDispatcherInterface.php b/vendor/symfony/event-dispatcher/EventDispatcherInterface.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/event-dispatcher/EventSubscriberInterface.php b/vendor/symfony/event-dispatcher/EventSubscriberInterface.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/event-dispatcher/GenericEvent.php b/vendor/symfony/event-dispatcher/GenericEvent.php old mode 100755 new mode 100644 index cb3edef8..2ac654fb --- a/vendor/symfony/event-dispatcher/GenericEvent.php +++ b/vendor/symfony/event-dispatcher/GenericEvent.php @@ -25,19 +25,16 @@ use Symfony\Contracts\EventDispatcher\Event; */ class GenericEvent extends Event implements \ArrayAccess, \IteratorAggregate { - protected mixed $subject; - protected array $arguments; - /** * Encapsulate an event with $subject and $arguments. * * @param mixed $subject The subject of the event, usually an object or a callable * @param array $arguments Arguments to store in the event */ - public function __construct(mixed $subject = null, array $arguments = []) - { - $this->subject = $subject; - $this->arguments = $arguments; + public function __construct( + protected mixed $subject = null, + protected array $arguments = [], + ) { } /** diff --git a/vendor/symfony/event-dispatcher/ImmutableEventDispatcher.php b/vendor/symfony/event-dispatcher/ImmutableEventDispatcher.php old mode 100755 new mode 100644 index 9afa56a4..a6d078e9 --- a/vendor/symfony/event-dispatcher/ImmutableEventDispatcher.php +++ b/vendor/symfony/event-dispatcher/ImmutableEventDispatcher.php @@ -18,11 +18,9 @@ namespace Symfony\Component\EventDispatcher; */ class ImmutableEventDispatcher implements EventDispatcherInterface { - private EventDispatcherInterface $dispatcher; - - public function __construct(EventDispatcherInterface $dispatcher) - { - $this->dispatcher = $dispatcher; + public function __construct( + private EventDispatcherInterface $dispatcher, + ) { } public function dispatch(object $event, ?string $eventName = null): object diff --git a/vendor/symfony/event-dispatcher/LICENSE b/vendor/symfony/event-dispatcher/LICENSE old mode 100755 new mode 100644 diff --git a/vendor/symfony/event-dispatcher/README.md b/vendor/symfony/event-dispatcher/README.md old mode 100755 new mode 100644 diff --git a/vendor/symfony/event-dispatcher/composer.json b/vendor/symfony/event-dispatcher/composer.json old mode 100755 new mode 100644 diff --git a/vendor/symfony/filesystem/CHANGELOG.md b/vendor/symfony/filesystem/CHANGELOG.md old mode 100755 new mode 100644 index b4bd22eb..80818d1b --- a/vendor/symfony/filesystem/CHANGELOG.md +++ b/vendor/symfony/filesystem/CHANGELOG.md @@ -1,6 +1,11 @@ CHANGELOG ========= +7.1 +--- + + * Add the `Filesystem::readFile()` method + 7.0 --- diff --git a/vendor/symfony/filesystem/Exception/ExceptionInterface.php b/vendor/symfony/filesystem/Exception/ExceptionInterface.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/filesystem/Exception/FileNotFoundException.php b/vendor/symfony/filesystem/Exception/FileNotFoundException.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/filesystem/Exception/IOException.php b/vendor/symfony/filesystem/Exception/IOException.php old mode 100755 new mode 100644 index df3a0850..46ab8b4a --- a/vendor/symfony/filesystem/Exception/IOException.php +++ b/vendor/symfony/filesystem/Exception/IOException.php @@ -20,12 +20,12 @@ namespace Symfony\Component\Filesystem\Exception; */ class IOException extends \RuntimeException implements IOExceptionInterface { - private ?string $path; - - public function __construct(string $message, int $code = 0, ?\Throwable $previous = null, ?string $path = null) - { - $this->path = $path; - + public function __construct( + string $message, + int $code = 0, + ?\Throwable $previous = null, + private ?string $path = null, + ) { parent::__construct($message, $code, $previous); } diff --git a/vendor/symfony/filesystem/Exception/IOExceptionInterface.php b/vendor/symfony/filesystem/Exception/IOExceptionInterface.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/filesystem/Exception/InvalidArgumentException.php b/vendor/symfony/filesystem/Exception/InvalidArgumentException.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/filesystem/Exception/RuntimeException.php b/vendor/symfony/filesystem/Exception/RuntimeException.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/filesystem/Filesystem.php b/vendor/symfony/filesystem/Filesystem.php old mode 100755 new mode 100644 index 176535d1..2cd09747 --- a/vendor/symfony/filesystem/Filesystem.php +++ b/vendor/symfony/filesystem/Filesystem.php @@ -662,7 +662,7 @@ class Filesystem throw new IOException(sprintf('Failed to write file "%s": ', $filename).self::$lastError, 0, null, $filename); } - self::box('chmod', $tmpFile, file_exists($filename) ? fileperms($filename) : 0666 & ~umask()); + self::box('chmod', $tmpFile, self::box('fileperms', $filename) ?: 0666 & ~umask()); $this->rename($tmpFile, $filename, true); } finally { @@ -697,6 +697,25 @@ class Filesystem } } + /** + * Returns the content of a file as a string. + * + * @throws IOException If the file cannot be read + */ + public function readFile(string $filename): string + { + if (is_dir($filename)) { + throw new IOException(sprintf('Failed to read file "%s": File is a directory.', $filename)); + } + + $content = self::box('file_get_contents', $filename); + if (false === $content) { + throw new IOException(sprintf('Failed to read file "%s": ', $filename).self::$lastError, 0, null, $filename); + } + + return $content; + } + private function toIterable(string|iterable $files): iterable { return is_iterable($files) ? $files : [$files]; diff --git a/vendor/symfony/filesystem/LICENSE b/vendor/symfony/filesystem/LICENSE old mode 100755 new mode 100644 diff --git a/vendor/symfony/filesystem/Path.php b/vendor/symfony/filesystem/Path.php old mode 100755 new mode 100644 index 01b56172..db9ce4be --- a/vendor/symfony/filesystem/Path.php +++ b/vendor/symfony/filesystem/Path.php @@ -346,13 +346,13 @@ final class Path $extension = ltrim($extension, '.'); // No extension for paths - if ('/' === substr($path, -1)) { + if (str_ends_with($path, '/')) { return $path; } // No actual extension in path - if (empty($actualExtension)) { - return $path.('.' === substr($path, -1) ? '' : '.').$extension; + if (!$actualExtension) { + return $path.(str_ends_with($path, '.') ? '' : '.').$extension; } return substr($path, 0, -\strlen($actualExtension)).$extension; @@ -365,7 +365,7 @@ final class Path } // Strip scheme - if (false !== $schemeSeparatorPosition = strpos($path, '://')) { + if (false !== ($schemeSeparatorPosition = strpos($path, '://')) && 1 !== $schemeSeparatorPosition) { $path = substr($path, $schemeSeparatorPosition + 3); } @@ -668,7 +668,7 @@ final class Path } // Only add slash if previous part didn't end with '/' or '\' - if (!\in_array(substr($finalPath, -1), ['/', '\\'])) { + if (!\in_array(substr($finalPath, -1), ['/', '\\'], true)) { $finalPath .= '/'; } diff --git a/vendor/symfony/filesystem/README.md b/vendor/symfony/filesystem/README.md old mode 100755 new mode 100644 diff --git a/vendor/symfony/filesystem/composer.json b/vendor/symfony/filesystem/composer.json old mode 100755 new mode 100644 index 1e054b68..c781e55b --- a/vendor/symfony/filesystem/composer.json +++ b/vendor/symfony/filesystem/composer.json @@ -20,6 +20,9 @@ "symfony/polyfill-ctype": "~1.8", "symfony/polyfill-mbstring": "~1.8" }, + "require-dev": { + "symfony/process": "^6.4|^7.0" + }, "autoload": { "psr-4": { "Symfony\\Component\\Filesystem\\": "" }, "exclude-from-classmap": [ diff --git a/vendor/symfony/finder/CHANGELOG.md b/vendor/symfony/finder/CHANGELOG.md old mode 100755 new mode 100644 diff --git a/vendor/symfony/finder/Comparator/Comparator.php b/vendor/symfony/finder/Comparator/Comparator.php old mode 100755 new mode 100644 index bd685834..c3d40e70 --- a/vendor/symfony/finder/Comparator/Comparator.php +++ b/vendor/symfony/finder/Comparator/Comparator.php @@ -16,16 +16,16 @@ namespace Symfony\Component\Finder\Comparator; */ class Comparator { - private string $target; private string $operator; - public function __construct(string $target, string $operator = '==') - { + public function __construct( + private string $target, + string $operator = '==', + ) { if (!\in_array($operator, ['>', '<', '>=', '<=', '==', '!='])) { throw new \InvalidArgumentException(sprintf('Invalid operator "%s".', $operator)); } - $this->target = $target; $this->operator = $operator; } diff --git a/vendor/symfony/finder/Comparator/DateComparator.php b/vendor/symfony/finder/Comparator/DateComparator.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/finder/Comparator/NumberComparator.php b/vendor/symfony/finder/Comparator/NumberComparator.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/finder/Exception/AccessDeniedException.php b/vendor/symfony/finder/Exception/AccessDeniedException.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/finder/Exception/DirectoryNotFoundException.php b/vendor/symfony/finder/Exception/DirectoryNotFoundException.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/finder/Finder.php b/vendor/symfony/finder/Finder.php old mode 100755 new mode 100644 index d062a60a..0894dcde --- a/vendor/symfony/finder/Finder.php +++ b/vendor/symfony/finder/Finder.php @@ -124,7 +124,7 @@ class Finder implements \IteratorAggregate, \Countable public function depth(string|int|array $levels): static { foreach ((array) $levels as $level) { - $this->depths[] = new Comparator\NumberComparator($level); + $this->depths[] = new NumberComparator($level); } return $this; @@ -152,7 +152,7 @@ class Finder implements \IteratorAggregate, \Countable public function date(string|array $dates): static { foreach ((array) $dates as $date) { - $this->dates[] = new Comparator\DateComparator($date); + $this->dates[] = new DateComparator($date); } return $this; @@ -307,7 +307,7 @@ class Finder implements \IteratorAggregate, \Countable public function size(string|int|array $sizes): static { foreach ((array) $sizes as $size) { - $this->sizes[] = new Comparator\NumberComparator($size); + $this->sizes[] = new NumberComparator($size); } return $this; @@ -436,7 +436,7 @@ class Finder implements \IteratorAggregate, \Countable */ public function sortByExtension(): static { - $this->sort = Iterator\SortableIterator::SORT_BY_EXTENSION; + $this->sort = SortableIterator::SORT_BY_EXTENSION; return $this; } @@ -452,7 +452,7 @@ class Finder implements \IteratorAggregate, \Countable */ public function sortByName(bool $useNaturalSort = false): static { - $this->sort = $useNaturalSort ? Iterator\SortableIterator::SORT_BY_NAME_NATURAL : Iterator\SortableIterator::SORT_BY_NAME; + $this->sort = $useNaturalSort ? SortableIterator::SORT_BY_NAME_NATURAL : SortableIterator::SORT_BY_NAME; return $this; } @@ -468,7 +468,7 @@ class Finder implements \IteratorAggregate, \Countable */ public function sortByCaseInsensitiveName(bool $useNaturalSort = false): static { - $this->sort = $useNaturalSort ? Iterator\SortableIterator::SORT_BY_NAME_NATURAL_CASE_INSENSITIVE : Iterator\SortableIterator::SORT_BY_NAME_CASE_INSENSITIVE; + $this->sort = $useNaturalSort ? SortableIterator::SORT_BY_NAME_NATURAL_CASE_INSENSITIVE : SortableIterator::SORT_BY_NAME_CASE_INSENSITIVE; return $this; } @@ -484,7 +484,7 @@ class Finder implements \IteratorAggregate, \Countable */ public function sortBySize(): static { - $this->sort = Iterator\SortableIterator::SORT_BY_SIZE; + $this->sort = SortableIterator::SORT_BY_SIZE; return $this; } @@ -500,7 +500,7 @@ class Finder implements \IteratorAggregate, \Countable */ public function sortByType(): static { - $this->sort = Iterator\SortableIterator::SORT_BY_TYPE; + $this->sort = SortableIterator::SORT_BY_TYPE; return $this; } @@ -518,7 +518,7 @@ class Finder implements \IteratorAggregate, \Countable */ public function sortByAccessedTime(): static { - $this->sort = Iterator\SortableIterator::SORT_BY_ACCESSED_TIME; + $this->sort = SortableIterator::SORT_BY_ACCESSED_TIME; return $this; } @@ -550,7 +550,7 @@ class Finder implements \IteratorAggregate, \Countable */ public function sortByChangedTime(): static { - $this->sort = Iterator\SortableIterator::SORT_BY_CHANGED_TIME; + $this->sort = SortableIterator::SORT_BY_CHANGED_TIME; return $this; } @@ -568,7 +568,7 @@ class Finder implements \IteratorAggregate, \Countable */ public function sortByModifiedTime(): static { - $this->sort = Iterator\SortableIterator::SORT_BY_MODIFIED_TIME; + $this->sort = SortableIterator::SORT_BY_MODIFIED_TIME; return $this; } @@ -671,7 +671,7 @@ class Finder implements \IteratorAggregate, \Countable $iterator = $this->searchInDirectory($this->dirs[0]); if ($this->sort || $this->reverseSorting) { - $iterator = (new Iterator\SortableIterator($iterator, $this->sort, $this->reverseSorting))->getIterator(); + $iterator = (new SortableIterator($iterator, $this->sort, $this->reverseSorting))->getIterator(); } return $iterator; @@ -687,7 +687,7 @@ class Finder implements \IteratorAggregate, \Countable } if ($this->sort || $this->reverseSorting) { - $iterator = (new Iterator\SortableIterator($iterator, $this->sort, $this->reverseSorting))->getIterator(); + $iterator = (new SortableIterator($iterator, $this->sort, $this->reverseSorting))->getIterator(); } return $iterator; @@ -790,13 +790,13 @@ class Finder implements \IteratorAggregate, \Countable $iterator = new Iterator\RecursiveDirectoryIterator($dir, $flags, $this->ignoreUnreadableDirs); if ($exclude) { - $iterator = new Iterator\ExcludeDirectoryFilterIterator($iterator, $exclude); + $iterator = new ExcludeDirectoryFilterIterator($iterator, $exclude); } $iterator = new \RecursiveIteratorIterator($iterator, \RecursiveIteratorIterator::SELF_FIRST); if ($minDepth > 0 || $maxDepth < \PHP_INT_MAX) { - $iterator = new Iterator\DepthRangeFilterIterator($iterator, $minDepth, $maxDepth); + $iterator = new DepthRangeFilterIterator($iterator, $minDepth, $maxDepth); } if ($this->mode) { @@ -804,23 +804,23 @@ class Finder implements \IteratorAggregate, \Countable } if ($this->names || $this->notNames) { - $iterator = new Iterator\FilenameFilterIterator($iterator, $this->names, $this->notNames); + $iterator = new FilenameFilterIterator($iterator, $this->names, $this->notNames); } if ($this->contains || $this->notContains) { - $iterator = new Iterator\FilecontentFilterIterator($iterator, $this->contains, $this->notContains); + $iterator = new FilecontentFilterIterator($iterator, $this->contains, $this->notContains); } if ($this->sizes) { - $iterator = new Iterator\SizeRangeFilterIterator($iterator, $this->sizes); + $iterator = new SizeRangeFilterIterator($iterator, $this->sizes); } if ($this->dates) { - $iterator = new Iterator\DateRangeFilterIterator($iterator, $this->dates); + $iterator = new DateRangeFilterIterator($iterator, $this->dates); } if ($this->filters) { - $iterator = new Iterator\CustomFilterIterator($iterator, $this->filters); + $iterator = new CustomFilterIterator($iterator, $this->filters); } if ($this->paths || $notPaths) { diff --git a/vendor/symfony/finder/Gitignore.php b/vendor/symfony/finder/Gitignore.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/finder/Glob.php b/vendor/symfony/finder/Glob.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/finder/Iterator/CustomFilterIterator.php b/vendor/symfony/finder/Iterator/CustomFilterIterator.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/finder/Iterator/DateRangeFilterIterator.php b/vendor/symfony/finder/Iterator/DateRangeFilterIterator.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/finder/Iterator/DepthRangeFilterIterator.php b/vendor/symfony/finder/Iterator/DepthRangeFilterIterator.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/finder/Iterator/ExcludeDirectoryFilterIterator.php b/vendor/symfony/finder/Iterator/ExcludeDirectoryFilterIterator.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/finder/Iterator/FileTypeFilterIterator.php b/vendor/symfony/finder/Iterator/FileTypeFilterIterator.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/finder/Iterator/FilecontentFilterIterator.php b/vendor/symfony/finder/Iterator/FilecontentFilterIterator.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/finder/Iterator/FilenameFilterIterator.php b/vendor/symfony/finder/Iterator/FilenameFilterIterator.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/finder/Iterator/LazyIterator.php b/vendor/symfony/finder/Iterator/LazyIterator.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/finder/Iterator/MultiplePcreFilterIterator.php b/vendor/symfony/finder/Iterator/MultiplePcreFilterIterator.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/finder/Iterator/PathFilterIterator.php b/vendor/symfony/finder/Iterator/PathFilterIterator.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/finder/Iterator/RecursiveDirectoryIterator.php b/vendor/symfony/finder/Iterator/RecursiveDirectoryIterator.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/finder/Iterator/SizeRangeFilterIterator.php b/vendor/symfony/finder/Iterator/SizeRangeFilterIterator.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/finder/Iterator/SortableIterator.php b/vendor/symfony/finder/Iterator/SortableIterator.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/finder/Iterator/VcsIgnoredFilterIterator.php b/vendor/symfony/finder/Iterator/VcsIgnoredFilterIterator.php old mode 100755 new mode 100644 index ddd70077..b278706e --- a/vendor/symfony/finder/Iterator/VcsIgnoredFilterIterator.php +++ b/vendor/symfony/finder/Iterator/VcsIgnoredFilterIterator.php @@ -37,9 +37,9 @@ final class VcsIgnoredFilterIterator extends \FilterIterator { $this->baseDir = $this->normalizePath($baseDir); - foreach ($this->parentDirectoriesUpwards($this->baseDir) as $parentDirectory) { - if (@is_dir("{$parentDirectory}/.git")) { - $this->baseDir = $parentDirectory; + foreach ([$this->baseDir, ...$this->parentDirectoriesUpwards($this->baseDir)] as $directory) { + if (@is_dir("{$directory}/.git")) { + $this->baseDir = $directory; break; } } diff --git a/vendor/symfony/finder/LICENSE b/vendor/symfony/finder/LICENSE old mode 100755 new mode 100644 diff --git a/vendor/symfony/finder/README.md b/vendor/symfony/finder/README.md old mode 100755 new mode 100644 diff --git a/vendor/symfony/finder/SplFileInfo.php b/vendor/symfony/finder/SplFileInfo.php old mode 100755 new mode 100644 index 867e8e81..2afc3782 --- a/vendor/symfony/finder/SplFileInfo.php +++ b/vendor/symfony/finder/SplFileInfo.php @@ -18,19 +18,17 @@ namespace Symfony\Component\Finder; */ class SplFileInfo extends \SplFileInfo { - private string $relativePath; - private string $relativePathname; - /** * @param string $file The file name * @param string $relativePath The relative path * @param string $relativePathname The relative path name */ - public function __construct(string $file, string $relativePath, string $relativePathname) - { + public function __construct( + string $file, + private string $relativePath, + private string $relativePathname, + ) { parent::__construct($file); - $this->relativePath = $relativePath; - $this->relativePathname = $relativePathname; } /** diff --git a/vendor/symfony/finder/composer.json b/vendor/symfony/finder/composer.json old mode 100755 new mode 100644 diff --git a/vendor/symfony/options-resolver/CHANGELOG.md b/vendor/symfony/options-resolver/CHANGELOG.md old mode 100755 new mode 100644 diff --git a/vendor/symfony/options-resolver/Debug/OptionsResolverIntrospector.php b/vendor/symfony/options-resolver/Debug/OptionsResolverIntrospector.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/options-resolver/Exception/AccessException.php b/vendor/symfony/options-resolver/Exception/AccessException.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/options-resolver/Exception/ExceptionInterface.php b/vendor/symfony/options-resolver/Exception/ExceptionInterface.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/options-resolver/Exception/InvalidArgumentException.php b/vendor/symfony/options-resolver/Exception/InvalidArgumentException.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/options-resolver/Exception/InvalidOptionsException.php b/vendor/symfony/options-resolver/Exception/InvalidOptionsException.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/options-resolver/Exception/MissingOptionsException.php b/vendor/symfony/options-resolver/Exception/MissingOptionsException.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/options-resolver/Exception/NoConfigurationException.php b/vendor/symfony/options-resolver/Exception/NoConfigurationException.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/options-resolver/Exception/NoSuchOptionException.php b/vendor/symfony/options-resolver/Exception/NoSuchOptionException.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/options-resolver/Exception/OptionDefinitionException.php b/vendor/symfony/options-resolver/Exception/OptionDefinitionException.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/options-resolver/Exception/UndefinedOptionsException.php b/vendor/symfony/options-resolver/Exception/UndefinedOptionsException.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/options-resolver/LICENSE b/vendor/symfony/options-resolver/LICENSE old mode 100755 new mode 100644 diff --git a/vendor/symfony/options-resolver/OptionConfigurator.php b/vendor/symfony/options-resolver/OptionConfigurator.php old mode 100755 new mode 100644 index 3aa37288..e708c2ce --- a/vendor/symfony/options-resolver/OptionConfigurator.php +++ b/vendor/symfony/options-resolver/OptionConfigurator.php @@ -15,13 +15,10 @@ use Symfony\Component\OptionsResolver\Exception\AccessException; final class OptionConfigurator { - private string $name; - private OptionsResolver $resolver; - - public function __construct(string $name, OptionsResolver $resolver) - { - $this->name = $name; - $this->resolver = $resolver; + public function __construct( + private string $name, + private OptionsResolver $resolver, + ) { $this->resolver->setDefined($name); } diff --git a/vendor/symfony/options-resolver/Options.php b/vendor/symfony/options-resolver/Options.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/options-resolver/OptionsResolver.php b/vendor/symfony/options-resolver/OptionsResolver.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/options-resolver/README.md b/vendor/symfony/options-resolver/README.md old mode 100755 new mode 100644 diff --git a/vendor/symfony/options-resolver/composer.json b/vendor/symfony/options-resolver/composer.json old mode 100755 new mode 100644 diff --git a/vendor/symfony/process/CHANGELOG.md b/vendor/symfony/process/CHANGELOG.md old mode 100755 new mode 100644 index e26819b5..f7b68b5d --- a/vendor/symfony/process/CHANGELOG.md +++ b/vendor/symfony/process/CHANGELOG.md @@ -1,6 +1,11 @@ CHANGELOG ========= +7.1 +--- + + * Add `Process::setIgnoredSignals()` to disable signal propagation to the child process + 6.4 --- diff --git a/vendor/symfony/process/Exception/ExceptionInterface.php b/vendor/symfony/process/Exception/ExceptionInterface.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/process/Exception/InvalidArgumentException.php b/vendor/symfony/process/Exception/InvalidArgumentException.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/process/Exception/LogicException.php b/vendor/symfony/process/Exception/LogicException.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/process/Exception/ProcessFailedException.php b/vendor/symfony/process/Exception/ProcessFailedException.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/process/Exception/ProcessSignaledException.php b/vendor/symfony/process/Exception/ProcessSignaledException.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/process/Exception/ProcessTimedOutException.php b/vendor/symfony/process/Exception/ProcessTimedOutException.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/process/Exception/RunProcessFailedException.php b/vendor/symfony/process/Exception/RunProcessFailedException.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/process/Exception/RuntimeException.php b/vendor/symfony/process/Exception/RuntimeException.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/process/ExecutableFinder.php b/vendor/symfony/process/ExecutableFinder.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/process/InputStream.php b/vendor/symfony/process/InputStream.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/process/LICENSE b/vendor/symfony/process/LICENSE old mode 100755 new mode 100644 diff --git a/vendor/symfony/process/Messenger/RunProcessContext.php b/vendor/symfony/process/Messenger/RunProcessContext.php old mode 100755 new mode 100644 index b5ade072..5e223040 --- a/vendor/symfony/process/Messenger/RunProcessContext.php +++ b/vendor/symfony/process/Messenger/RunProcessContext.php @@ -27,7 +27,7 @@ final class RunProcessContext Process $process, ) { $this->exitCode = $process->getExitCode(); - $this->output = $process->isOutputDisabled() ? null : $process->getOutput(); - $this->errorOutput = $process->isOutputDisabled() ? null : $process->getErrorOutput(); + $this->output = !$process->isStarted() || $process->isOutputDisabled() ? null : $process->getOutput(); + $this->errorOutput = !$process->isStarted() || $process->isOutputDisabled() ? null : $process->getErrorOutput(); } } diff --git a/vendor/symfony/process/Messenger/RunProcessMessage.php b/vendor/symfony/process/Messenger/RunProcessMessage.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/process/Messenger/RunProcessMessageHandler.php b/vendor/symfony/process/Messenger/RunProcessMessageHandler.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/process/PhpExecutableFinder.php b/vendor/symfony/process/PhpExecutableFinder.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/process/PhpProcess.php b/vendor/symfony/process/PhpProcess.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/process/PhpSubprocess.php b/vendor/symfony/process/PhpSubprocess.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/process/Pipes/AbstractPipes.php b/vendor/symfony/process/Pipes/AbstractPipes.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/process/Pipes/PipesInterface.php b/vendor/symfony/process/Pipes/PipesInterface.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/process/Pipes/UnixPipes.php b/vendor/symfony/process/Pipes/UnixPipes.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/process/Pipes/WindowsPipes.php b/vendor/symfony/process/Pipes/WindowsPipes.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/process/Process.php b/vendor/symfony/process/Process.php old mode 100755 new mode 100644 index 1aaf730d..fd3ad875 --- a/vendor/symfony/process/Process.php +++ b/vendor/symfony/process/Process.php @@ -15,6 +15,7 @@ use Symfony\Component\Process\Exception\InvalidArgumentException; use Symfony\Component\Process\Exception\LogicException; use Symfony\Component\Process\Exception\ProcessFailedException; use Symfony\Component\Process\Exception\ProcessSignaledException; +use Symfony\Component\Process\Exception\ProcessStartFailedException; use Symfony\Component\Process\Exception\ProcessTimedOutException; use Symfony\Component\Process\Exception\RuntimeException; use Symfony\Component\Process\Pipes\UnixPipes; @@ -76,6 +77,7 @@ class Process implements \IteratorAggregate private bool $tty = false; private bool $pty; private array $options = ['suppress_errors' => true, 'bypass_shell' => true]; + private array $ignoredSignals = []; private WindowsPipes|UnixPipes $processPipes; @@ -234,11 +236,11 @@ class Process implements \IteratorAggregate * * @return int The exit status code * - * @throws RuntimeException When process can't be launched - * @throws RuntimeException When process is already running - * @throws ProcessTimedOutException When process timed out - * @throws ProcessSignaledException When process stopped after receiving signal - * @throws LogicException In case a callback is provided and output has been disabled + * @throws ProcessStartFailedException When process can't be launched + * @throws RuntimeException When process is already running + * @throws ProcessTimedOutException When process timed out + * @throws ProcessSignaledException When process stopped after receiving signal + * @throws LogicException In case a callback is provided and output has been disabled * * @final */ @@ -285,9 +287,9 @@ class Process implements \IteratorAggregate * @param callable|null $callback A PHP callback to run whenever there is some * output available on STDOUT or STDERR * - * @throws RuntimeException When process can't be launched - * @throws RuntimeException When process is already running - * @throws LogicException In case a callback is provided and output has been disabled + * @throws ProcessStartFailedException When process can't be launched + * @throws RuntimeException When process is already running + * @throws LogicException In case a callback is provided and output has been disabled */ public function start(?callable $callback = null, array $env = []): void { @@ -307,12 +309,7 @@ class Process implements \IteratorAggregate $env += '\\' === \DIRECTORY_SEPARATOR ? array_diff_ukey($this->getDefaultEnv(), $env, 'strcasecmp') : $this->getDefaultEnv(); if (\is_array($commandline = $this->commandline)) { - $commandline = implode(' ', array_map($this->escapeArgument(...), $commandline)); - - if ('\\' !== \DIRECTORY_SEPARATOR) { - // exec is mandatory to deal with sending a signal to the process - $commandline = 'exec '.$commandline; - } + $commandline = array_values(array_map(strval(...), $commandline)); } else { $commandline = $this->replacePlaceholders($commandline, $env); } @@ -323,6 +320,11 @@ class Process implements \IteratorAggregate // last exit code is output on the fourth pipe and caught to work around --enable-sigchild $descriptors[3] = ['pipe', 'w']; + if (\is_array($commandline)) { + // exec is mandatory to deal with sending a signal to the process + $commandline = 'exec '.$this->buildShellCommandline($commandline); + } + // See https://unix.stackexchange.com/questions/71205/background-process-pipe-input $commandline = '{ ('.$commandline.') <&3 3<&- 3>/dev/null & } 3<&0;'; $commandline .= 'pid=$!; echo $pid >&3; wait $pid 2>/dev/null; code=$?; echo $code >&3; exit $code'; @@ -339,10 +341,34 @@ class Process implements \IteratorAggregate throw new RuntimeException(sprintf('The provided cwd "%s" does not exist.', $this->cwd)); } - $process = @proc_open($commandline, $descriptors, $this->processPipes->pipes, $this->cwd, $envPairs, $this->options); + $lastError = null; + set_error_handler(function ($type, $msg) use (&$lastError) { + $lastError = $msg; + + return true; + }); + + $oldMask = []; + + if ($this->ignoredSignals && \function_exists('pcntl_sigprocmask')) { + // we block signals we want to ignore, as proc_open will use fork / posix_spawn which will copy the signal mask this allow to block + // signals in the child process + pcntl_sigprocmask(\SIG_BLOCK, $this->ignoredSignals, $oldMask); + } + + try { + $process = @proc_open($commandline, $descriptors, $this->processPipes->pipes, $this->cwd, $envPairs, $this->options); + } finally { + if ($this->ignoredSignals && \function_exists('pcntl_sigprocmask')) { + // we restore the signal mask here to avoid any side effects + pcntl_sigprocmask(\SIG_SETMASK, $oldMask); + } + + restore_error_handler(); + } if (!\is_resource($process)) { - throw new RuntimeException('Unable to launch a new process.'); + throw new ProcessStartFailedException($this, $lastError); } $this->process = $process; $this->status = self::STATUS_STARTED; @@ -367,8 +393,8 @@ class Process implements \IteratorAggregate * @param callable|null $callback A PHP callback to run whenever there is some * output available on STDOUT or STDERR * - * @throws RuntimeException When process can't be launched - * @throws RuntimeException When process is already running + * @throws ProcessStartFailedException When process can't be launched + * @throws RuntimeException When process is already running * * @see start() * @@ -944,7 +970,7 @@ class Process implements \IteratorAggregate */ public function getCommandLine(): string { - return \is_array($this->commandline) ? implode(' ', array_map($this->escapeArgument(...), $this->commandline)) : $this->commandline; + return $this->buildShellCommandline($this->commandline); } /** @@ -1195,6 +1221,20 @@ class Process implements \IteratorAggregate } } + /** + * Defines a list of posix signals that will not be propagated to the process. + * + * @param list<\SIG*> $signals + */ + public function setIgnoredSignals(array $signals): void + { + if ($this->isRunning()) { + throw new RuntimeException('Setting ignored signals while the process is running is not possible.'); + } + + $this->ignoredSignals = $signals; + } + /** * Returns whether TTY is supported on the current operating system. */ @@ -1202,7 +1242,7 @@ class Process implements \IteratorAggregate { static $isTtySupported; - return $isTtySupported ??= ('/' === \DIRECTORY_SEPARATOR && stream_isatty(\STDOUT)); + return $isTtySupported ??= ('/' === \DIRECTORY_SEPARATOR && stream_isatty(\STDOUT) && @is_writable('/dev/tty')); } /** @@ -1444,6 +1484,11 @@ class Process implements \IteratorAggregate */ private function doSignal(int $signal, bool $throwException): bool { + // Signal seems to be send when sigchild is enable, this allow blocking the signal correctly in this case + if ($this->isSigchildEnabled() && \in_array($signal, $this->ignoredSignals)) { + return false; + } + if (null === $pid = $this->getPid()) { if ($throwException) { throw new LogicException('Cannot send signal on a non running process.'); @@ -1486,8 +1531,18 @@ class Process implements \IteratorAggregate return true; } - private function prepareWindowsCommandLine(string $cmd, array &$env): string + private function buildShellCommandline(string|array $commandline): string { + if (\is_string($commandline)) { + return $commandline; + } + + return implode(' ', array_map($this->escapeArgument(...), $commandline)); + } + + private function prepareWindowsCommandLine(string|array $cmd, array &$env): string + { + $cmd = $this->buildShellCommandline($cmd); $uid = uniqid('', true); $cmd = preg_replace_callback( '/"(?:( diff --git a/vendor/symfony/process/ProcessUtils.php b/vendor/symfony/process/ProcessUtils.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/process/README.md b/vendor/symfony/process/README.md old mode 100755 new mode 100644 diff --git a/vendor/symfony/process/composer.json b/vendor/symfony/process/composer.json old mode 100755 new mode 100644 diff --git a/vendor/symfony/service-contracts/Attribute/Required.php b/vendor/symfony/service-contracts/Attribute/Required.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/service-contracts/Attribute/SubscribedService.php b/vendor/symfony/service-contracts/Attribute/SubscribedService.php old mode 100755 new mode 100644 index d98e1dfd..f850b840 --- a/vendor/symfony/service-contracts/Attribute/SubscribedService.php +++ b/vendor/symfony/service-contracts/Attribute/SubscribedService.php @@ -11,15 +11,15 @@ namespace Symfony\Contracts\Service\Attribute; +use Symfony\Contracts\Service\ServiceMethodsSubscriberTrait; use Symfony\Contracts\Service\ServiceSubscriberInterface; -use Symfony\Contracts\Service\ServiceSubscriberTrait; /** * For use as the return value for {@see ServiceSubscriberInterface}. * * @example new SubscribedService('http_client', HttpClientInterface::class, false, new Target('githubApi')) * - * Use with {@see ServiceSubscriberTrait} to mark a method's return type + * Use with {@see ServiceMethodsSubscriberTrait} to mark a method's return type * as a subscribed service. * * @author Kevin Bond diff --git a/vendor/symfony/service-contracts/CHANGELOG.md b/vendor/symfony/service-contracts/CHANGELOG.md old mode 100755 new mode 100644 diff --git a/vendor/symfony/service-contracts/LICENSE b/vendor/symfony/service-contracts/LICENSE old mode 100755 new mode 100644 diff --git a/vendor/symfony/service-contracts/README.md b/vendor/symfony/service-contracts/README.md old mode 100755 new mode 100644 diff --git a/vendor/symfony/service-contracts/ResetInterface.php b/vendor/symfony/service-contracts/ResetInterface.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/service-contracts/ServiceLocatorTrait.php b/vendor/symfony/service-contracts/ServiceLocatorTrait.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/service-contracts/ServiceProviderInterface.php b/vendor/symfony/service-contracts/ServiceProviderInterface.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/service-contracts/ServiceSubscriberInterface.php b/vendor/symfony/service-contracts/ServiceSubscriberInterface.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/service-contracts/ServiceSubscriberTrait.php b/vendor/symfony/service-contracts/ServiceSubscriberTrait.php old mode 100755 new mode 100644 index f3b450cd..cc3bc321 --- a/vendor/symfony/service-contracts/ServiceSubscriberTrait.php +++ b/vendor/symfony/service-contracts/ServiceSubscriberTrait.php @@ -15,17 +15,23 @@ use Psr\Container\ContainerInterface; use Symfony\Contracts\Service\Attribute\Required; use Symfony\Contracts\Service\Attribute\SubscribedService; +trigger_deprecation('symfony/contracts', 'v3.5', '"%s" is deprecated, use "ServiceMethodsSubscriberTrait" instead.', ServiceSubscriberTrait::class); + /** - * Implementation of ServiceSubscriberInterface that determines subscribed services from - * method return types. Service ids are available as "ClassName::methodName". + * Implementation of ServiceSubscriberInterface that determines subscribed services + * from methods that have the #[SubscribedService] attribute. + * + * Service ids are available as "ClassName::methodName" so that the implementation + * of subscriber methods can be just `return $this->container->get(__METHOD__);`. + * + * @property ContainerInterface $container * * @author Kevin Bond + * + * @deprecated since symfony/contracts v3.5, use ServiceMethodsSubscriberTrait instead */ trait ServiceSubscriberTrait { - /** @var ContainerInterface */ - protected $container; - public static function getSubscribedServices(): array { $services = method_exists(get_parent_class(self::class) ?: '', __FUNCTION__) ? parent::getSubscribedServices() : []; diff --git a/vendor/symfony/service-contracts/Test/ServiceLocatorTest.php b/vendor/symfony/service-contracts/Test/ServiceLocatorTest.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/service-contracts/Test/ServiceLocatorTestCase.php b/vendor/symfony/service-contracts/Test/ServiceLocatorTestCase.php old mode 100755 new mode 100644 index 583f72a7..65a3fe33 --- a/vendor/symfony/service-contracts/Test/ServiceLocatorTestCase.php +++ b/vendor/symfony/service-contracts/Test/ServiceLocatorTestCase.php @@ -12,7 +12,9 @@ namespace Symfony\Contracts\Service\Test; use PHPUnit\Framework\TestCase; +use Psr\Container\ContainerExceptionInterface; use Psr\Container\ContainerInterface; +use Psr\Container\NotFoundExceptionInterface; use Symfony\Contracts\Service\ServiceLocatorTrait; abstract class ServiceLocatorTestCase extends TestCase @@ -66,27 +68,29 @@ abstract class ServiceLocatorTestCase extends TestCase public function testThrowsOnUndefinedInternalService() { - if (!$this->getExpectedException()) { - $this->expectException(\Psr\Container\NotFoundExceptionInterface::class); - $this->expectExceptionMessage('The service "foo" has a dependency on a non-existent service "bar". This locator only knows about the "foo" service.'); - } $locator = $this->getServiceLocator([ 'foo' => function () use (&$locator) { return $locator->get('bar'); }, ]); + if (!$this->getExpectedException()) { + $this->expectException(NotFoundExceptionInterface::class); + $this->expectExceptionMessage('The service "foo" has a dependency on a non-existent service "bar". This locator only knows about the "foo" service.'); + } + $locator->get('foo'); } public function testThrowsOnCircularReference() { - $this->expectException(\Psr\Container\ContainerExceptionInterface::class); - $this->expectExceptionMessage('Circular reference detected for service "bar", path: "bar -> baz -> bar".'); $locator = $this->getServiceLocator([ 'foo' => function () use (&$locator) { return $locator->get('bar'); }, 'bar' => function () use (&$locator) { return $locator->get('baz'); }, 'baz' => function () use (&$locator) { return $locator->get('bar'); }, ]); + $this->expectException(ContainerExceptionInterface::class); + $this->expectExceptionMessage('Circular reference detected for service "bar", path: "bar -> baz -> bar".'); + $locator->get('foo'); } } diff --git a/vendor/symfony/service-contracts/composer.json b/vendor/symfony/service-contracts/composer.json old mode 100755 new mode 100644 index 32bb8a31..fc8674a7 --- a/vendor/symfony/service-contracts/composer.json +++ b/vendor/symfony/service-contracts/composer.json @@ -17,7 +17,8 @@ ], "require": { "php": ">=8.1", - "psr/container": "^1.1|^2.0" + "psr/container": "^1.1|^2.0", + "symfony/deprecation-contracts": "^2.5|^3" }, "conflict": { "ext-psr": "<1.1|>=2" @@ -31,7 +32,7 @@ "minimum-stability": "dev", "extra": { "branch-alias": { - "dev-main": "3.4-dev" + "dev-main": "3.5-dev" }, "thanks": { "name": "symfony/contracts", diff --git a/vendor/symfony/stopwatch/CHANGELOG.md b/vendor/symfony/stopwatch/CHANGELOG.md old mode 100755 new mode 100644 diff --git a/vendor/symfony/stopwatch/LICENSE b/vendor/symfony/stopwatch/LICENSE old mode 100755 new mode 100644 diff --git a/vendor/symfony/stopwatch/README.md b/vendor/symfony/stopwatch/README.md old mode 100755 new mode 100644 index 13a9dfa5..824ddfd6 --- a/vendor/symfony/stopwatch/README.md +++ b/vendor/symfony/stopwatch/README.md @@ -6,8 +6,8 @@ The Stopwatch component provides a way to profile code. Getting Started --------------- -``` -$ composer require symfony/stopwatch +```bash +composer require symfony/stopwatch ``` ```php diff --git a/vendor/symfony/stopwatch/Section.php b/vendor/symfony/stopwatch/Section.php old mode 100755 new mode 100644 index 2a34db16..912e391f --- a/vendor/symfony/stopwatch/Section.php +++ b/vendor/symfony/stopwatch/Section.php @@ -23,8 +23,6 @@ class Section */ private array $events = []; - private ?float $origin; - private bool $morePrecision; private ?string $id = null; /** @@ -36,10 +34,10 @@ class Section * @param float|null $origin Set the origin of the events in this section, use null to set their origin to their start time * @param bool $morePrecision If true, time is stored as float to keep the original microsecond precision */ - public function __construct(?float $origin = null, bool $morePrecision = false) - { - $this->origin = $origin; - $this->morePrecision = $morePrecision; + public function __construct( + private ?float $origin = null, + private bool $morePrecision = false, + ) { } /** diff --git a/vendor/symfony/stopwatch/Stopwatch.php b/vendor/symfony/stopwatch/Stopwatch.php old mode 100755 new mode 100644 index b50ca1b3..53ef69f7 --- a/vendor/symfony/stopwatch/Stopwatch.php +++ b/vendor/symfony/stopwatch/Stopwatch.php @@ -23,8 +23,6 @@ class_exists(Section::class); */ class Stopwatch implements ResetInterface { - private bool $morePrecision; - /** * @var Section[] */ @@ -38,9 +36,9 @@ class Stopwatch implements ResetInterface /** * @param bool $morePrecision If true, time is stored as float to keep the original microsecond precision */ - public function __construct(bool $morePrecision = false) - { - $this->morePrecision = $morePrecision; + public function __construct( + private bool $morePrecision = false, + ) { $this->reset(); } diff --git a/vendor/symfony/stopwatch/StopwatchEvent.php b/vendor/symfony/stopwatch/StopwatchEvent.php old mode 100755 new mode 100644 index 841bb3f4..08be4892 --- a/vendor/symfony/stopwatch/StopwatchEvent.php +++ b/vendor/symfony/stopwatch/StopwatchEvent.php @@ -25,7 +25,6 @@ class StopwatchEvent private float $origin; private string $category; - private bool $morePrecision; /** * @var float[] @@ -42,11 +41,14 @@ class StopwatchEvent * * @throws \InvalidArgumentException When the raw time is not valid */ - public function __construct(float $origin, ?string $category = null, bool $morePrecision = false, ?string $name = null) - { + public function __construct( + float $origin, + ?string $category = null, + private bool $morePrecision = false, + ?string $name = null, + ) { $this->origin = $this->formatTime($origin); $this->category = \is_string($category) ? $category : 'default'; - $this->morePrecision = $morePrecision; $this->name = $name ?? 'default'; } @@ -101,7 +103,7 @@ class StopwatchEvent */ public function isStarted(): bool { - return !empty($this->started); + return (bool) $this->started; } /** diff --git a/vendor/symfony/stopwatch/StopwatchPeriod.php b/vendor/symfony/stopwatch/StopwatchPeriod.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/stopwatch/composer.json b/vendor/symfony/stopwatch/composer.json old mode 100755 new mode 100644 diff --git a/vendor/symfony/string/AbstractString.php b/vendor/symfony/string/AbstractString.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/string/AbstractUnicodeString.php b/vendor/symfony/string/AbstractUnicodeString.php old mode 100755 new mode 100644 index 673ad8ce..f3acb2e1 --- a/vendor/symfony/string/AbstractUnicodeString.php +++ b/vendor/symfony/string/AbstractUnicodeString.php @@ -190,7 +190,7 @@ abstract class AbstractUnicodeString extends AbstractString if (!$compat || !\defined('Normalizer::NFKC_CF')) { $str->string = normalizer_normalize($str->string, $compat ? \Normalizer::NFKC : \Normalizer::NFC); - $str->string = mb_strtolower(str_replace(self::FOLD_FROM, self::FOLD_TO, $this->string), 'UTF-8'); + $str->string = mb_strtolower(str_replace(self::FOLD_FROM, self::FOLD_TO, $str->string), 'UTF-8'); } else { $str->string = normalizer_normalize($str->string, \Normalizer::NFKC_CF); } @@ -220,6 +220,21 @@ abstract class AbstractUnicodeString extends AbstractString return $str; } + /** + * @param string $locale In the format language_region (e.g. tr_TR) + */ + public function localeLower(string $locale): static + { + if (null !== $transliterator = $this->getLocaleTransliterator($locale, 'Lower')) { + $str = clone $this; + $str->string = $transliterator->transliterate($str->string); + + return $str; + } + + return $this->lower(); + } + public function match(string $regexp, int $flags = 0, int $offset = 0): array { $match = ((\PREG_PATTERN_ORDER | \PREG_SET_ORDER) & $flags) ? 'preg_match_all' : 'preg_match'; @@ -363,6 +378,21 @@ abstract class AbstractUnicodeString extends AbstractString return $str; } + /** + * @param string $locale In the format language_region (e.g. tr_TR) + */ + public function localeTitle(string $locale): static + { + if (null !== $transliterator = $this->getLocaleTransliterator($locale, 'Title')) { + $str = clone $this; + $str->string = $transliterator->transliterate($str->string); + + return $str; + } + + return $this->title(); + } + public function trim(string $chars = " \t\n\r\0\x0B\x0C\u{A0}\u{FEFF}"): static { if (" \t\n\r\0\x0B\x0C\u{A0}\u{FEFF}" !== $chars && !preg_match('//u', $chars)) { @@ -450,6 +480,21 @@ abstract class AbstractUnicodeString extends AbstractString return $str; } + /** + * @param string $locale In the format language_region (e.g. tr_TR) + */ + public function localeUpper(string $locale): static + { + if (null !== $transliterator = $this->getLocaleTransliterator($locale, 'Upper')) { + $str = clone $this; + $str->string = $transliterator->transliterate($str->string); + + return $str; + } + + return $this->upper(); + } + public function width(bool $ignoreAnsiDecoration = true): int { $width = 0; @@ -587,4 +632,33 @@ abstract class AbstractUnicodeString extends AbstractString return $width; } + + private function getLocaleTransliterator(string $locale, string $id): ?\Transliterator + { + $rule = $locale.'-'.$id; + if (\array_key_exists($rule, self::$transliterators)) { + return self::$transliterators[$rule]; + } + + if (null !== $transliterator = self::$transliterators[$rule] = \Transliterator::create($rule)) { + return $transliterator; + } + + // Try to find a parent locale (nl_BE -> nl) + if (false === $i = strpos($locale, '_')) { + return null; + } + + $parentRule = substr_replace($locale, '-'.$id, $i); + + // Parent locale was already cached, return and store as current locale + if (\array_key_exists($parentRule, self::$transliterators)) { + return self::$transliterators[$rule] = self::$transliterators[$parentRule]; + } + + // Create transliterator based on parent locale and cache the result on both initial and parent locale values + $transliterator = \Transliterator::create($parentRule); + + return self::$transliterators[$rule] = self::$transliterators[$parentRule] = $transliterator; + } } diff --git a/vendor/symfony/string/ByteString.php b/vendor/symfony/string/ByteString.php old mode 100755 new mode 100644 index 3ebe43c1..e6b56ae1 --- a/vendor/symfony/string/ByteString.php +++ b/vendor/symfony/string/ByteString.php @@ -11,6 +11,7 @@ namespace Symfony\Component\String; +use Random\Randomizer; use Symfony\Component\String\Exception\ExceptionInterface; use Symfony\Component\String\Exception\InvalidArgumentException; use Symfony\Component\String\Exception\RuntimeException; @@ -55,6 +56,10 @@ class ByteString extends AbstractString throw new InvalidArgumentException('The length of the alphabet must in the [2^1, 2^56] range.'); } + if (\PHP_VERSION_ID >= 80300) { + return new static((new Randomizer())->getBytesFromString($alphabet, $length)); + } + $ret = ''; while ($length > 0) { $urandomLength = (int) ceil(2 * $length * $bits / 8.0); diff --git a/vendor/symfony/string/CHANGELOG.md b/vendor/symfony/string/CHANGELOG.md old mode 100755 new mode 100644 index 31a3b54d..621cedfc --- a/vendor/symfony/string/CHANGELOG.md +++ b/vendor/symfony/string/CHANGELOG.md @@ -1,6 +1,11 @@ CHANGELOG ========= +7.1 +--- + + * Add `localeLower()`, `localeUpper()`, `localeTitle()` methods to `AbstractUnicodeString` + 6.2 --- diff --git a/vendor/symfony/string/CodePointString.php b/vendor/symfony/string/CodePointString.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/string/Exception/ExceptionInterface.php b/vendor/symfony/string/Exception/ExceptionInterface.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/string/Exception/InvalidArgumentException.php b/vendor/symfony/string/Exception/InvalidArgumentException.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/string/Exception/RuntimeException.php b/vendor/symfony/string/Exception/RuntimeException.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/string/Inflector/EnglishInflector.php b/vendor/symfony/string/Inflector/EnglishInflector.php old mode 100755 new mode 100644 index dc7b08e7..56f03b7f --- a/vendor/symfony/string/Inflector/EnglishInflector.php +++ b/vendor/symfony/string/Inflector/EnglishInflector.php @@ -238,6 +238,9 @@ final class EnglishInflector implements InflectorInterface // teeth (tooth) ['htoot', 5, true, true, 'teeth'], + // albums (album) + ['mubla', 5, true, true, 'albums'], + // bacteria (bacterium), criteria (criterion), phenomena (phenomenon) ['mu', 2, true, true, 'a'], @@ -396,6 +399,9 @@ final class EnglishInflector implements InflectorInterface // aircraft 'tfarcria', + + // hardware + 'erawdrah', ]; public function singularize(string $plural): array diff --git a/vendor/symfony/string/Inflector/FrenchInflector.php b/vendor/symfony/string/Inflector/FrenchInflector.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/string/Inflector/InflectorInterface.php b/vendor/symfony/string/Inflector/InflectorInterface.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/string/LICENSE b/vendor/symfony/string/LICENSE old mode 100755 new mode 100644 diff --git a/vendor/symfony/string/LazyString.php b/vendor/symfony/string/LazyString.php old mode 100755 new mode 100644 index 519b54ab..8f2bbbf8 --- a/vendor/symfony/string/LazyString.php +++ b/vendor/symfony/string/LazyString.php @@ -129,7 +129,7 @@ class LazyString implements \Stringable, \JsonSerializable } elseif ($callback instanceof \Closure) { $r = new \ReflectionFunction($callback); - if (str_contains($r->name, '{closure}') || !$class = $r->getClosureCalledClass()) { + if ($r->isAnonymous() || !$class = $r->getClosureCalledClass()) { return $r->name; } diff --git a/vendor/symfony/string/README.md b/vendor/symfony/string/README.md old mode 100755 new mode 100644 diff --git a/vendor/symfony/string/Resources/data/wcswidth_table_wide.php b/vendor/symfony/string/Resources/data/wcswidth_table_wide.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/string/Resources/data/wcswidth_table_zero.php b/vendor/symfony/string/Resources/data/wcswidth_table_zero.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/string/Resources/functions.php b/vendor/symfony/string/Resources/functions.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/string/Slugger/AsciiSlugger.php b/vendor/symfony/string/Slugger/AsciiSlugger.php old mode 100755 new mode 100644 index fd47770c..d2545329 --- a/vendor/symfony/string/Slugger/AsciiSlugger.php +++ b/vendor/symfony/string/Slugger/AsciiSlugger.php @@ -11,7 +11,7 @@ namespace Symfony\Component\String\Slugger; -use Symfony\Component\Intl\Transliterator\EmojiTransliterator; +use Symfony\Component\Emoji\EmojiTransliterator; use Symfony\Component\String\AbstractUnicodeString; use Symfony\Component\String\UnicodeString; use Symfony\Contracts\Translation\LocaleAwareInterface; @@ -55,7 +55,6 @@ class AsciiSlugger implements SluggerInterface, LocaleAwareInterface 'zh' => 'Han-Latin', ]; - private ?string $defaultLocale; private \Closure|array $symbolsMap = [ 'en' => ['@' => 'at', '&' => 'and'], ]; @@ -68,9 +67,10 @@ class AsciiSlugger implements SluggerInterface, LocaleAwareInterface */ private array $transliterators = []; - public function __construct(?string $defaultLocale = null, array|\Closure|null $symbolsMap = null) - { - $this->defaultLocale = $defaultLocale; + public function __construct( + private ?string $defaultLocale = null, + array|\Closure|null $symbolsMap = null, + ) { $this->symbolsMap = $symbolsMap ?? $this->symbolsMap; } @@ -92,7 +92,7 @@ class AsciiSlugger implements SluggerInterface, LocaleAwareInterface public function withEmoji(bool|string $emoji = true): static { if (false !== $emoji && !class_exists(EmojiTransliterator::class)) { - throw new \LogicException(sprintf('You cannot use the "%s()" method as the "symfony/intl" package is not installed. Try running "composer require symfony/intl".', __METHOD__)); + throw new \LogicException(sprintf('You cannot use the "%s()" method as the "symfony/emoji" package is not installed. Try running "composer require symfony/emoji".', __METHOD__)); } $new = clone $this; diff --git a/vendor/symfony/string/Slugger/SluggerInterface.php b/vendor/symfony/string/Slugger/SluggerInterface.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/string/UnicodeString.php b/vendor/symfony/string/UnicodeString.php old mode 100755 new mode 100644 diff --git a/vendor/symfony/string/composer.json b/vendor/symfony/string/composer.json old mode 100755 new mode 100644 index 26ce26da..10d0ee62 --- a/vendor/symfony/string/composer.json +++ b/vendor/symfony/string/composer.json @@ -24,8 +24,9 @@ }, "require-dev": { "symfony/error-handler": "^6.4|^7.0", - "symfony/intl": "^6.4|^7.0", + "symfony/emoji": "^7.1", "symfony/http-client": "^6.4|^7.0", + "symfony/intl": "^6.4|^7.0", "symfony/translation-contracts": "^2.5|^3.0", "symfony/var-exporter": "^6.4|^7.0" },