PHP Classes

File: src/Element/TypeHintedElementTrait.php

Recommend this page to a friend!
  Packages of WsdlToPhp   PHP Code Generator   src/Element/TypeHintedElementTrait.php  
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
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

You need to be a registered user and login to get this file.

Login Immediately with your account on: