Fixed php error

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | https://github.com/Guite/MostGenerator/issues/318
| License       | MIT
| Doc PR        | --

refs https://github.com/Guite/MostGenerator/issues/318