Skip to content

Commit 8dbe85c

Browse files
committed
Move to ThoroughPHP namespace
1 parent 2cfe6a8 commit 8dbe85c

File tree

6 files changed

+16
-16
lines changed

6 files changed

+16
-16
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
language: php
22
sudo: false
33
php:
4-
- 7.1
54
- 7.2
5+
- 7.3
66

77
before_install:
88
- composer self-update

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2018 Vsevolod Vietluzhskykh
1+
Copyright (c) 2018-2019 Vsevolod Vietluzhskykh
22

33
Permission is hereby granted, free of charge, to any person obtaining a copy
44
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
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

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
2-
"name": "sevavietl/type-signature",
2+
"name": "thorough-php/type-signature",
33
"description": "Type signature generator for PHP",
44
"type": "library",
55
"require": {
6-
"php": ">=7.1"
6+
"php": ">=7.2"
77
},
88
"require-dev": {
99
"phpunit/phpunit": "^7.3",
@@ -12,12 +12,12 @@
1212
},
1313
"autoload": {
1414
"psr-4": {
15-
"TypeSignature\\": "src/"
15+
"ThoroughPHP\\TypeSignature\\": "src/"
1616
}
1717
},
1818
"autoload-dev": {
1919
"psr-4": {
20-
"TypeSignature\\Test\\": "test/"
20+
"ThoroughPHP\\TypeSignature\\Test\\": "test/"
2121
}
2222
},
2323
"license": "MIT",

src/TypeSignature.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace TypeSignature;
3+
namespace ThoroughPHP\TypeSignature;
44

55
final class TypeSignature
66
{

test/TypeSignatureTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<?php
22

3-
namespace TypeSignature\Test;
3+
namespace ThoroughPHP\TypeSignature\Test;
44

55
use PHPUnit\Framework\TestCase;
6-
use TypeSignature\TypeSignature;
6+
use ThoroughPHP\TypeSignature\TypeSignature;
77

88
final class TypeSignatureTest extends TestCase
99
{

0 commit comments

Comments
 (0)