11# TypeSignature - Type signature generator for PHP
22
3- [ ![ Build Status] ( https://travis-ci.com/Sevavietl /TypeSignature.svg?branch=master )] ( https://travis-ci.com/Sevavietl /TypeSignature )
4- [ ![ Coverage Status] ( https://coveralls.io/repos/github/Sevavietl /TypeSignature/badge.svg )] ( https://coveralls.io/github/Sevavietl /TypeSignature )
3+ [ ![ Build Status] ( https://travis-ci.com/ThoroughPHP /TypeSignature.svg?branch=master )] ( https://travis-ci.com/ThoroughPHP /TypeSignature )
4+ [ ![ Coverage Status] ( https://coveralls.io/repos/github/ThoroughPHP /TypeSignature/badge.svg )] ( https://coveralls.io/github/ThoroughPHP /TypeSignature )
55[ ![ License: MIT] ( https://img.shields.io/badge/License-MIT-yellow.svg )] ( https://opensource.org/licenses/MIT )
66[ ![ PHPStan] ( https://img.shields.io/badge/PHPStan-enabled-brightgreen.svg?style=flat )] ( https://github.com/phpstan/phpstan )
77
@@ -16,7 +16,7 @@ Supports following PHP [types](http://php.net/manual/en/language.types.intro.php
1616- [ array] ( http://php.net/manual/en/language.types.array.php )
1717
1818``` php
19- \TypeSignature\ TypeSignature::array('string'); // => 'string[]'
19+ TypeSignature::array('string'); // => 'string[]'
2020```
2121
2222- [ object] ( http://php.net/manual/en/language.types.object.php )
@@ -25,26 +25,26 @@ Supports following PHP [types](http://php.net/manual/en/language.types.intro.php
2525- [ number] ( http://php.net/manual/en/language.pseudo-types.php#language.types.number )
2626
2727``` php
28- \TypeSignature\ TypeSignature::number(); // => 'integer|float|double'
28+ TypeSignature::number(); // => 'integer|float|double'
2929```
3030
3131- [ callback] ( http://php.net/manual/en/language.pseudo-types.php#language.types.callback )
3232- [ union types] ( https://ceylon-lang.org/documentation/1.3/tour/types/#union_types )
3333
3434``` php
35- \ TypeSignature\TypeSignature ::union(\ TypeSignature\TypeSignature ::integer(), \TypeSignature\ TypeSignature::string()); // => 'integer|string'
35+ TypeSignature::union(TypeSignature::integer(), TypeSignature::string()); // => 'integer|string'
3636```
3737
3838- [ intersection types] ( https://ceylon-lang.org/documentation/1.3/tour/types/#intersection_types )
3939
4040``` php
41- \TypeSignature\ TypeSignature::intersection(\ArrayAccess::class, \Countable::class); // => 'ArrayAccess&Countable'
41+ TypeSignature::intersection(\ArrayAccess::class, \Countable::class); // => 'ArrayAccess&Countable'
4242```
4343
4444- [ optional types] ( http://php.net/manual/en/migration71.new-features.php )
4545
4646``` php
47- \TypeSignature\ TypeSignature::optional(TypeSignature::string()); => 'string
47+ TypeSignature::optional(TypeSignature::string()); => 'string
4848```
4949
5050## TODO
0 commit comments