Skip to content
This repository was archived by the owner on Sep 1, 2023. It is now read-only.

Commit fcd2cdc

Browse files
committed
change root namespace from FredEmmott to Facebook
1 parent 73dd893 commit fcd2cdc

File tree

11 files changed

+22
-22
lines changed

11 files changed

+22
-22
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ either return it unmodified (but with type data) or throw an exception; for exam
1111

1212
```Hack
1313
<?hh // strict
14-
use \FredEmmott\TypeAssert\TypeAssert;
14+
use \Facebook\TypeAssert\TypeAssert;
1515
function need_string(string $bar): void {
1616
}
1717
@@ -81,7 +81,7 @@ Throws if it's null, and refines the type otherwise - for example:
8181

8282
```Hack
8383
<?hh // strict
84-
use \FredEmmott\TypeAssert\TypeAssert;
84+
use \Facebook\TypeAssert\TypeAssert;
8585
8686
function needs_string(string $foo): void {}
8787
function needs_int(int $bar): void {}
@@ -99,7 +99,7 @@ Asserts that the input is an object of the given type; for example:
9999

100100
```Hack
101101
<?hh
102-
use \FredEmmott\TypeAssert\TypeAssert;
102+
use \Facebook\TypeAssert\TypeAssert;
103103
104104
class Foo {}
105105
@@ -120,7 +120,7 @@ implements the specified interface.
120120

121121
```Hack
122122
<?hh // strict
123-
use \FredEmmott\TypeAssert\TypeAssert;
123+
use \Facebook\TypeAssert\TypeAssert;
124124
125125
class Foo {
126126
public static function doStuff(): void {}

src/IncorrectTypeException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* of patent rights can be found in the PATENTS file in the same directory.
99
*/
1010

11-
namespace FredEmmott\TypeAssert;
11+
namespace Facebook\TypeAssert;
1212

1313
final class IncorrectTypeException extends \Exception {
1414
public function __construct(

src/PrivateImpl/TypeStructureImpl.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
* of patent rights can be found in the PATENTS file in the same directory.
99
*/
1010

11-
namespace FredEmmott\TypeAssert\PrivateImpl;
11+
namespace Facebook\TypeAssert\PrivateImpl;
1212

13-
use \FredEmmott\TypeAssert\IncorrectTypeException;
14-
use \FredEmmott\TypeAssert\TypeAssert;
15-
use \FredEmmott\TypeAssert\UnsupportedTypeException;
13+
use \Facebook\TypeAssert\IncorrectTypeException;
14+
use \Facebook\TypeAssert\TypeAssert;
15+
use \Facebook\TypeAssert\UnsupportedTypeException;
1616

1717
abstract final class TypeStructureImpl {
1818
final public static function assertMatchesTypeStructure<T>(

src/TypeAssert.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
* of patent rights can be found in the PATENTS file in the same directory.
99
*/
1010

11-
namespace FredEmmott\TypeAssert;
11+
namespace Facebook\TypeAssert;
1212

13-
use FredEmmott\TypeAssert\PrivateImpl\TypeStructureImpl;
13+
use Facebook\TypeAssert\PrivateImpl\TypeStructureImpl;
1414

1515
abstract class TypeAssert {
1616
final public static function isString(mixed $x): string {

src/UnsupportedTypeException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* of patent rights can be found in the PATENTS file in the same directory.
99
*/
1010

11-
namespace FredEmmott\TypeAssert;
11+
namespace Facebook\TypeAssert;
1212

1313
final class UnsupportedTypeException extends \Exception {
1414
public function __construct(

tests/RelationshipsTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88
* of patent rights can be found in the PATENTS file in the same directory.
99
*/
1010

11-
namespace FredEmmott\TypeAssert;
11+
namespace Facebook\TypeAssert;
1212

13-
use FredEmmott\TypeAssert\TestFixtures\ChildClass;
14-
use FredEmmott\TypeAssert\TestFixtures\ParentClass;
13+
use Facebook\TypeAssert\TestFixtures\ChildClass;
14+
use Facebook\TypeAssert\TestFixtures\ParentClass;
1515

1616
final class RelationshipsTest extends \PHPUnit\Framework\TestCase {
1717
public function testObjectInstanceOfOwnClass(): void {

tests/ScalarsTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* of patent rights can be found in the PATENTS file in the same directory.
99
*/
1010

11-
namespace FredEmmott\TypeAssert;
11+
namespace Facebook\TypeAssert;
1212

1313
final class ScalarsTest extends \PHPUnit\Framework\TestCase {
1414
public function testIsStringPasses(): void {

tests/TypeStructureTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88
* of patent rights can be found in the PATENTS file in the same directory.
99
*/
1010

11-
namespace FredEmmott\TypeAssert;
11+
namespace Facebook\TypeAssert;
1212

13-
use \FredEmmott\TypeAssert\TestFixtures\ExampleEnum;
14-
use \FredEmmott\TypeAssert\TestFixtures\TypeConstants as C;
13+
use \Facebook\TypeAssert\TestFixtures\ExampleEnum;
14+
use \Facebook\TypeAssert\TestFixtures\TypeConstants as C;
1515

1616
final class TypeStructureTest extends \PHPUnit\Framework\TestCase {
1717
public function getExampleValidTypes(

tests/fixtures/ExampleEnum.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* of patent rights can be found in the PATENTS file in the same directory.
99
*/
1010

11-
namespace FredEmmott\TypeAssert\TestFixtures;
11+
namespace Facebook\TypeAssert\TestFixtures;
1212

1313
enum ExampleEnum: string {
1414
HERP = 'herp';

tests/fixtures/Relationships.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* of patent rights can be found in the PATENTS file in the same directory.
99
*/
1010

11-
namespace FredEmmott\TypeAssert\TestFixtures;
11+
namespace Facebook\TypeAssert\TestFixtures;
1212

1313
class ParentClass {}
1414
class ChildClass extends ParentClass {}

0 commit comments

Comments
 (0)