Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit dee9016

Browse files
committedDec 14, 2024
refactor: perform initial upgrade
1 parent fbedafe commit dee9016

10 files changed

+78
-319
lines changed
 

‎.php_cs.dist.php

-40
This file was deleted.

‎LICENSE.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) Petrobolos Games <info@petrobolos.com>
3+
Copyright (c) Oliver Earl <oliver.earl@petrobolos.com>
44

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

‎composer.json

+28-22
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
22
"name": "petrobolos/fixed-array-functions",
3-
"description": "This is my package fixed-array-functions",
3+
"description": "Laravel helper methods for working with high performance SPL fixed arrays.",
44
"keywords": [
55
"laravel",
66
"splfixedarray",
77
"array",
88
"collection"
99
],
10-
"homepage": "https://github.com/petrobolos/fixed-array-functions",
10+
"homepage": "https://github.com/oliverearl/fixed-array-functions",
1111
"license": "MIT",
1212
"authors": [
1313
{
@@ -17,38 +17,41 @@
1717
}
1818
],
1919
"require": {
20-
"php": "^8.0 || ^8.1",
21-
"spatie/laravel-package-tools": "^1.9.2",
22-
"illuminate/contracts": "^8.0 || ^9.0"
20+
"php": "^8.3",
21+
"spatie/laravel-package-tools": "^1.16",
22+
"illuminate/contracts": "^10.0||^11.0"
2323
},
2424
"require-dev": {
25-
"nunomaduro/collision": "^5.0 || ^6.0",
26-
"nunomaduro/larastan": "^1.0.3 || ^2.0.1",
27-
"orchestra/testbench": "^6.0 || ^7.0",
28-
"pestphp/pest": "^1.21",
29-
"pestphp/pest-plugin-laravel": "^1.1",
30-
"phpstan/extension-installer": "^1.1",
31-
"phpstan/phpstan-deprecation-rules": "^1.0",
32-
"phpstan/phpstan-phpunit": "^1.0",
33-
"phpunit/phpunit": "^9.5"
25+
"laravel/pint": "^1.14",
26+
"nunomaduro/collision": "^8.1.1||^7.10.0",
27+
"larastan/larastan": "^2.9",
28+
"orchestra/testbench": "^9.0.0||^8.22.0",
29+
"pestphp/pest": "^3.0",
30+
"pestphp/pest-plugin-arch": "^3.0",
31+
"pestphp/pest-plugin-laravel": "^3.0",
32+
"phpstan/extension-installer": "^1.3",
33+
"phpstan/phpstan-deprecation-rules": "^1.1",
34+
"phpstan/phpstan-phpunit": "^1.3",
35+
"spatie/laravel-ray": "^1.35"
3436
},
3537
"autoload": {
3638
"psr-4": {
37-
"Petrobolos\\FixedArray\\": "src"
38-
},
39-
"files": [
40-
"src/helpers.php"
41-
]
39+
"Petrobolos\\FixedArray\\": "src/"
40+
}
4241
},
4342
"autoload-dev": {
4443
"psr-4": {
45-
"Petrobolos\\FixedArray\\Tests\\": "tests"
44+
"Petrobolos\\FixedArray\\Tests\\": "tests",
45+
"Workbench\\App\\": "workbench/app/"
4646
}
4747
},
4848
"scripts": {
49+
"post-autoload-dump": "@composer run prepare",
50+
"prepare": "@php vendor/bin/testbench package:discover --ansi",
4951
"analyse": "vendor/bin/phpstan analyse",
5052
"test": "vendor/bin/pest",
51-
"test-coverage": "vendor/bin/pest --coverage"
53+
"test-coverage": "vendor/bin/pest --coverage",
54+
"format": "vendor/bin/pint"
5255
},
5356
"config": {
5457
"sort-packages": true,
@@ -61,7 +64,10 @@
6164
"laravel": {
6265
"providers": [
6366
"Petrobolos\\FixedArray\\FixedArrayFunctionsServiceProvider"
64-
]
67+
],
68+
"aliases": {
69+
"FixedArray": "Petrobolos\\FixedArrayFunctions\\Facades\\FixedArray"
70+
}
6571
}
6672
},
6773
"minimum-stability": "dev",

‎phpstan.neon.dist

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ includes:
22
- phpstan-baseline.neon
33

44
parameters:
5-
level: 4
5+
level: 5
66
paths:
77
- src
8+
- config
9+
- database
810
tmpDir: build/phpstan
911
checkOctaneCompatibility: true
1012
checkModelProperties: true
11-
checkMissingIterableValueType: false
12-

‎phpunit.xml.dist

+21-37
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,23 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<phpunit
3-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4-
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
5-
backupGlobals="false"
6-
backupStaticAttributes="false"
7-
bootstrap="vendor/autoload.php"
8-
colors="true"
9-
convertErrorsToExceptions="true"
10-
convertNoticesToExceptions="true"
11-
convertWarningsToExceptions="true"
12-
processIsolation="false"
13-
stopOnFailure="false"
14-
executionOrder="random"
15-
failOnWarning="true"
16-
failOnRisky="true"
17-
failOnEmptyTestSuite="true"
18-
beStrictAboutOutputDuringTests="true"
19-
verbose="true"
20-
>
21-
<testsuites>
22-
<testsuite name="Petrobolos Test Suite">
23-
<directory>tests</directory>
24-
</testsuite>
25-
</testsuites>
26-
<coverage>
27-
<include>
28-
<directory suffix=".php">./src</directory>
29-
</include>
30-
<report>
31-
<html outputDirectory="build/coverage"/>
32-
<text outputFile="build/coverage.txt"/>
33-
<clover outputFile="build/logs/clover.xml"/>
34-
</report>
35-
</coverage>
36-
<logging>
37-
<junit outputFile="build/report.junit.xml"/>
38-
</logging>
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd" backupGlobals="false" bootstrap="vendor/autoload.php" colors="true" processIsolation="false" stopOnFailure="false" executionOrder="random" failOnWarning="true" failOnRisky="true" failOnEmptyTestSuite="true" beStrictAboutOutputDuringTests="true" cacheDirectory=".phpunit.cache" backupStaticProperties="false">
3+
<testsuites>
4+
<testsuite name="Petrobolos Test Suite">
5+
<directory>tests</directory>
6+
</testsuite>
7+
</testsuites>
8+
<coverage>
9+
<report>
10+
<html outputDirectory="build/coverage"/>
11+
<text outputFile="build/coverage.txt"/>
12+
<clover outputFile="build/logs/clover.xml"/>
13+
</report>
14+
</coverage>
15+
<logging>
16+
<junit outputFile="build/report.junit.xml"/>
17+
</logging>
18+
<source>
19+
<include>
20+
<directory suffix=".php">./src</directory>
21+
</include>
22+
</source>
3923
</phpunit>

‎src/Facades/FixedArray.php

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
namespace Petrobolos\FixedArray\Facades;
6+
7+
use Illuminate\Support\Facades\Facade;
8+
use Petrobolos\FixedArray\FixedArray as BaseFixedArray;
9+
10+
/**
11+
* @see FixedArray
12+
*/
13+
class FixedArray extends Facade
14+
{
15+
protected static function getFacadeAccessor(): string
16+
{
17+
return BaseFixedArray::class;
18+
}
19+
}

0 commit comments

Comments
 (0)
Please sign in to comment.