jbowens / jBBCode

A lightweight but extensible BBCode parser
http://jbbcode.com
MIT License
164 stars 32 forks source link

fix type annotations for InputValidator #84

Closed shmax closed 4 years ago

shmax commented 4 years ago

Fixing another type annotation (to make static type checkers such as PHPStan happy). In this case, changing CodeDefinition::optionValidator and CodeDefinitionBuilder::optionValidator from type InputValidator to array[string]InputValidator.

Note: I validated this PHPDoc annotation syntax using PHPStan, and also this linter

shmax commented 4 years ago

@jbowens Hate to bother you, but when you get a chance I'd appreciate a review...

jbowens commented 4 years ago

@shmax cool, thanks for the change

shmax commented 4 years ago

Thanks! Would you mind doing a tiny release so I can get the changes?

shmax commented 4 years ago

Wonderful, thank you!