Closed vearutop closed 3 years ago
Evaluation of the following class fails with error:
use Swaggest\JsonSchema\Constraint\Properties; use Swaggest\JsonSchema\Schema; use Swaggest\JsonSchema\Structure\ClassStructure; class WithConst extends ClassStructure { /** @var string */ public $foo; /** * @param Properties|static $properties * @param Schema $ownerSchema */ public static function setUpProperties($properties, Schema $ownerSchema) { $properties->foo = Schema::string(); $properties->foo->const = "abc"; $ownerSchema->type = Schema::OBJECT; } }
Error : Call to undefined method stdClass::out()
Related to https://github.com/swaggest/php-code-builder/issues/40.
Evaluation of the following class fails with error:
Related to https://github.com/swaggest/php-code-builder/issues/40.