Skip to content

Commit

Permalink
Merge pull request #16 from faissaloux/namespace
Browse files Browse the repository at this point in the history
`AnotherLibrary` update namespaces and documentation
  • Loading branch information
nunomaduro authored Mar 31, 2024
2 parents a9c5586 + 8745bd5 commit 8df1ca1
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<p align="center">
<img src="https://raw.githubusercontent.com/std-library/type-guard/master/docs/example.jpg" height="300" alt="Skeleton Php">
<img src="https://raw.githubusercontent.com/another-library/type-guard/master/docs/example.jpg" height="300" alt="Skeleton Php">
<p align="center">
<a href="https://github.com/std-library/type-guard/actions"><img alt="GitHub Workflow Status (master)" src="https://github.com/std-library/type-guard/actions/workflows/tests.yml/badge.svg"></a>
<a href="https://packagist.org/packages/std-library/type-guard"><img alt="Total Downloads" src="https://img.shields.io/packagist/dt/std-library/type-guard"></a>
<a href="https://packagist.org/packages/std-library/type-guard"><img alt="Latest Version" src="https://img.shields.io/packagist/v/std-library/type-guard"></a>
<a href="https://packagist.org/packages/std-library/type-guard"><img alt="License" src="https://img.shields.io/packagist/l/std-library/type-guard"></a>
<a href="https://github.com/another-library/type-guard/actions"><img alt="GitHub Workflow Status (master)" src="https://github.com/another-library/type-guard/actions/workflows/tests.yml/badge.svg"></a>
<a href="https://packagist.org/packages/another-library/type-guard"><img alt="Total Downloads" src="https://img.shields.io/packagist/dt/another-library/type-guard"></a>
<a href="https://packagist.org/packages/another-library/type-guard"><img alt="Latest Version" src="https://img.shields.io/packagist/v/another-library/type-guard"></a>
<a href="https://packagist.org/packages/another-library/type-guard"><img alt="License" src="https://img.shields.io/packagist/l/another-library/type-guard"></a>
</p>
</p>

Expand Down Expand Up @@ -53,7 +53,7 @@ $users = type($users)->as(Collection::class);
You may use [Composer](https://getcomposer.org) to install Type Guard into your PHP project:

```bash
composer require std-library/type-guard
composer require another-library/type-guard
```

## Usage
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "another-library/type-guard",
"description": "Type Guard module is part of the Another Library, and allows you to narrow down the type of an variable to a more specific type.",
"keywords": ["std-library", "type-guard", "assert", "narrow", "type", "php"],
"keywords": ["another-library", "type-guard", "assert", "narrow", "type", "php"],
"license": "MIT",
"authors": [
{
Expand All @@ -22,7 +22,7 @@
},
"autoload": {
"psr-4": {
"StdLibrary\\TypeGuard\\": "src/"
"AnotherLibrary\\TypeGuard\\": "src/"
}
},
"autoload-dev": {
Expand Down
2 changes: 1 addition & 1 deletion src/Functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

use StdLibrary\TypeGuard\Type;
use AnotherLibrary\TypeGuard\Type;

if (! function_exists('type')) {
/**
Expand Down
2 changes: 1 addition & 1 deletion src/Not.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace StdLibrary\TypeGuard;
namespace AnotherLibrary\TypeGuard;

use TypeError;

Expand Down
2 changes: 1 addition & 1 deletion src/Type.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace StdLibrary\TypeGuard;
namespace AnotherLibrary\TypeGuard;

use TypeError;

Expand Down

0 comments on commit 8df1ca1

Please sign in to comment.