Skip to content

Fatal error when passing --help argument (PHP 8) #125

@redtide

Description

@redtide

System Information

PHP Version:

8.0.11

stakx Version:

0.2.1

Operating System

Archlinux (5.13.13-arch1-1)

Expected behavior

No errors.

Actual behavior

1:

    $ stakx
    stakx v0.2.0-81-g7aa1db5
     
    Usage:
      command [options] [arguments]
     
    Options:
      -h, --help            Display this help message
      -q, --quiet           Do not output any message
      -V, --version         Display this application version
          --ansi            Force ANSI output
          --no-ansi         Disable ANSI output
      -n, --no-interaction  Do not ask any interactive question
      -v|vv|vvv, --verbose  Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
     
    PHP Fatal error:  Uncaught ArgumentCountError: array_merge() does not accept unknown named parameters in phar:///home/redtide/.local/bin/stakx/vendor/symfony/console/Descriptor/TextDescriptor.php:205
    Stack trace:
    #0 phar:///home/redtide/.local/bin/stakx/vendor/symfony/console/Descriptor/TextDescriptor.php(205): array_merge()
    #1 phar:///home/redtide/.local/bin/stakx/vendor/symfony/console/Descriptor/Descriptor.php(55): Symfony\Component\Console\Descriptor\TextDescriptor->describeApplication()
    #2 phar:///home/redtide/.local/bin/stakx/vendor/symfony/console/Helper/DescriptorHelper.php(67): Symfony\Component\Console\Descriptor\Descriptor->describe()
    #3 phar:///home/redtide/.local/bin/stakx/vendor/symfony/console/Command/ListCommand.php(75): Symfony\Component\Console\Helper\DescriptorHelper->describe()
    #4 phar:///home/redtide/.local/bin/stakx/vendor/symfony/console/Command/Command.php(255): Symfony\Component\Console\Command\ListCommand->execute()
    #5 phar:///home/redtide/.local/bin/stakx/vendor/symfony/console/Application.php(987): Symfony\Component\Console\Command\Command->run()
    #6 phar:///home/redtide/.local/bin/stakx/vendor/symfony/console/Application.php(255): Symfony\Component\Console\Application->doRunCommand()
    #7 phar:///home/redtide/.local/bin/stakx/vendor/symfony/console/Application.php(148): Symfony\Component\Console\Application->doRun()
    #8 phar:///home/redtide/.local/bin/stakx/src/allejo/stakx/Console/Application.php(51): Symfony\Component\Console\Application->run()
    #9 phar:///home/redtide/.local/bin/stakx/bin/stakx(10): allejo\stakx\Console\Application->run()
    #10 /home/redtide/.local/bin/stakx(11): require('...')
    #11 {main}
      thrown in phar:///home/redtide/.local/bin/stakx/vendor/symfony/console/Descriptor/TextDescriptor.php on line 205

2:

$ stakx build
PHP Warning:  Private methods cannot be final as they are never overridden by other classes in phar:///home/redtide/.local/bin/stakx/src/allejo/stakx/Document/PermalinkDocumentTrait.php on line 120
PHP Warning:  Trying to access array offset on value of type null in phar:///home/redtide/.local/bin/stakx/vendor/erusev/parsedown-extra/ParsedownExtra.php on line 305
PHP Warning:  Trying to access array offset on value of type null in phar:///home/redtide/.local/bin/stakx/vendor/erusev/parsedown-extra/ParsedownExtra.php on line 305

(the second warning is repeated 5 or more times)

Steps to reproduce behavior

  1. Run stakx with no arguments or --help.
  2. Run stakx build

This happens with both current development and 0.2.1 release.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions