Skip to content

Latest commit

 

History

History
53 lines (38 loc) · 2.08 KB

README.md

File metadata and controls

53 lines (38 loc) · 2.08 KB

TypeSignature - Type signature generator for PHP

Build Status Coverage Status License: MIT PHPStan

Features

Supports following PHP types:

TypeSignature::array('string'); // => 'string[]'
TypeSignature::number(); // => 'integer|float|double'
TypeSignature::union(TypeSignature::integer(), TypeSignature::string()); // => 'integer|string'
TypeSignature::intersection(\ArrayAccess::class, \Countable::class); // => 'ArrayAccess&Countable'
TypeSignature::optional(TypeSignature::string()); => 'string

TODO