| File: |
src/Element/TypeHintedElementTrait.php |
| Role: |
Class source |
| Content type: |
text/plain |
| Description: |
Class source |
| Class: |
PHP Code Generator
Generate PHP code elements programatically |
| Author: |
By WsdlToPhp |
| Last change: |
fix: disable autoloading in typeIsValid to prevent fatal errors during generation (#16)
class_exists() in typeIsValid() triggers the autoloader, which can cause
fatal errors during code generation when a freshly-generated class extends
a parent class that hasn't been generated yet. The generation order of
structs is non-deterministic, so this produces intermittent failures.
Passing false as the second argument to class_exists() disables autoloading.
The subsequent stringIsValid() check still validates the type string format,
so there is no loss of validation coverage.
Refactor docker container to be able to run any PHP version from 7.4 (#14)
Thanks AI for 😄:
- update Dockerfile
- update docker-compose
- create Makefile
Update code with:
- CS Fixer
- Rector
#Refactor docker container to be able to run any PHP version from 7.4 |
| Date: |
Less than 1 hour ago |
| Size: |
1,255 bytes |
|
|
|