dokuwiki / dokuwiki/dokuwiki-plugin-dev

PHP Deprecated: ucfirst(): Passing null to parameter #1 ($string) of type string is deprecated

Open
#3 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
PHP
Stars
8
Forks
3
PR merge metrics
No merged PRs in 30d

Description

```
..../dokuwiki/lib/plugins/indexmenu$ ../../../bin/plugin.php dev addTest
PHP Deprecated: ucfirst(): Passing null to parameter #1 ($string) of type string is deprecated in /home/gerrit/Sites/dokuwiki/dokuwiki/lib/plugins/dev/Skeletor.php on line 165
✓ .github/workflows/dokuwiki.yml created
✓ _test/GeneralTest.php created
```

https://github.com/dokuwiki/dokuwiki-plugin-dev/blob/7c3b7a0e25254af08f144f6b20513771098b9f15/cli.php#L90-L92

https://github.com/dokuwiki/dokuwiki-plugin-dev/blob/7c3b7a0e25254af08f144f6b20513771098b9f15/cli.php#L286-L289

https://github.com/dokuwiki/dokuwiki-plugin-dev/blob/7c3b7a0e25254af08f144f6b20513771098b9f15/Skeletor.php#L165

Probably the $this->args array which is used in cli.php is empty, and therefore resulting in a null. An option is casting to string?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.