swaggest / swac

🤖 OpenAPI/Swagger client generator for PHP, Go and JavaScript (ES5)
MIT License
9 stars 3 forks source link

PHP warnings added to markdown files #39

Closed peterzernia closed 2 years ago

peterzernia commented 2 years ago

It looks like since the latest release these PHP warnings are being added into the markdown

Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in phar:///bin/swac/vendor/php-yaoi/php-yaoi/src/Cli/View/Text.php on line 23
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in phar:///bin/swac/vendor/swaggest/code-builder/src/TableRenderer.php on line 99

as well as

Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in phar:///bin/swac/src/Markdown/APIDoc.php on line 68

is printed in the logs

vearutop commented 2 years ago

oh, yeah, thanks, I'll need to update deps to improve php 8.1 compat 👍

vearutop commented 2 years ago

Please try v0.1.29 and feel free to reopen issue if it persists.