Skip to content

Commit 6bb9ead

Browse files
authored
Merge pull request #4 from lisachenko/feature/php-8-support-and-rename
Enable PHP8 and rename project to make name logical
2 parents 9139980 + 4e0d753 commit 6bb9ead

File tree

4 files changed

+12
-9
lines changed

4 files changed

+12
-9
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,12 @@ composer require lisachenko/native-types
2424
```
2525

2626
Now you can test it with following example:
27+
2728
```php
2829
<?php
2930
declare(strict_types=1);
3031

31-
use Native\Type\Matrix;
32+
use Lisachenko\NativePhpMatrix\Matrix;
3233

3334
$first = new Matrix([[10, 20, 30]]);
3435
$second = new Matrix([[2, 4, 6]]);

bootstrap.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
*/
1010
declare(strict_types=1);
1111

12-
use Native\Type\Matrix;
12+
use Lisachenko\NativePhpMatrix\Matrix;
1313
use ZEngine\Core;
1414
use ZEngine\Reflection\ReflectionClass as ReflectionClassEx;
1515

composer.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"name": "lisachenko/native-types",
3-
"description": "PHP Library that provides an implementation of userland types, powered with overloaded operators",
2+
"name": "lisachenko/native-php-matrix",
3+
"description": "PHP extension that provides Matrix class powered with overloaded operators",
44
"type": "library",
55
"license": "MIT",
66
"authors": [
@@ -10,12 +10,12 @@
1010
}
1111
],
1212
"require": {
13-
"lisachenko/z-engine": "^0.7 || ^0.8",
14-
"php": "~7.4"
13+
"lisachenko/z-engine": "^0.8 || ^0.9",
14+
"php": "^7.4|^8.0"
1515
},
1616
"autoload": {
1717
"psr-4" : {
18-
"Native\\Type\\" : "src/"
18+
"Lisachenko\\NativePhpMatrix\\" : "src/"
1919
},
2020
"files": ["bootstrap.php"]
2121
}

src/Matrix.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
*/
1010
declare(strict_types = 1);
1111

12-
namespace Native\Type;
12+
namespace Lisachenko\NativePhpMatrix;
1313

1414
use InvalidArgumentException;
1515
use ZEngine\ClassExtension\Hook\CompareValuesHook;
@@ -19,7 +19,9 @@
1919
use ZEngine\ClassExtension\ObjectCreateTrait;
2020
use ZEngine\ClassExtension\ObjectDoOperationInterface;
2121
use ZEngine\System\OpCode;
22-
use function count, is_numeric;
22+
23+
use function count;
24+
use function is_numeric;
2325

2426
/**
2527
* Simple class Matrix powered by custom operator handlers

0 commit comments

Comments
 (0)