Skip to content

Commit af40474

Browse files
committed
upgraded to laravel 9 / added typed properties.
1 parent eb411e6 commit af40474

File tree

16 files changed

+53
-47
lines changed

16 files changed

+53
-47
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
timeout-minutes: 30
1515
strategy:
1616
matrix:
17-
php: [7.4, 8.0 ]
17+
php: [8.0 ]
1818
mysql: [5.7]
1919

2020
services:

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,13 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
2828
### Changed
2929
- migrated to Laravel 8 / PHPUnit 9.5
3030
- Changed Travis-CI to Github Actions
31+
32+
## [4.0.0] - 2025-06-14
33+
### Added
34+
- Typed Properties added to every Class
35+
36+
### Changed
37+
- migrated to Laravel 9
38+
39+
### Removed
40+
- Dropped Support for PHP 7.x

app.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM php:8.0.1-fpm
1+
FROM php:8.0.2-fpm
22
RUN apt-get update \
33
&& apt-get install -y unzip curl libzip-dev zlib1g-dev libpng-dev libjpeg-dev \
44
libfreetype6-dev git mariadb-client libmagickwand-dev openssh-client \

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@
1010
"php 8"
1111
],
1212
"require": {
13-
"php": "^7.3|^8.0",
13+
"php": "^8.0",
1414
"ext-pdo_mysql": "*",
1515
"doctrine/dbal": "^2.10",
16-
"laravel/framework": "^8.6",
16+
"laravel/framework": "^9.5",
1717
"marcj/topsort": "^1.1"
1818
},
1919
"require-dev": {
2020
"phpunit/phpunit": "^9.5.0",
21-
"orchestra/testbench": "^6.0"
21+
"orchestra/testbench": "^7.0"
2222
},
2323
"autoload": {
2424
"psr-4": {

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ services:
1717
build:
1818
context: .
1919
# dockerfile: app.Dockerfile
20-
dockerfile: app-temp.Dockerfile
20+
dockerfile: app.Dockerfile
2121
volumes:
2222
- .:/var/www/html/:consistent
2323
depends_on:

src/Service/Generator/Compiler/Engine/ReplaceEngine.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
class ReplaceEngine implements Engine
1010
{
11-
public function get($path, array $data = [])
11+
public function get($path, array $data = []): string
1212
{
1313
$content = file_get_contents($path);
1414
$content = $this->populateData($content, $data);

src/Service/Generator/Compiler/MigrationCompiler.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@
1313

1414
class MigrationCompiler implements MigrationCompilerInterface
1515
{
16-
protected $view;
17-
protected $renderedTemplate;
18-
protected $mapper = [];
19-
protected $filesystem;
20-
protected $migrationFiles = [];
16+
protected ViewFactory $view;
17+
protected string $renderedTemplate;
18+
protected array $mapper = [];
19+
protected Filesystem $filesystem;
20+
protected array $migrationFiles = [];
2121

2222
public function __construct(ViewFactory $view, Filesystem $filesystem)
2323
{

src/Service/Generator/Definition/AbstractDefinition.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77

88
abstract class AbstractDefinition implements DefinitionInterface
99
{
10-
protected $result = [];
11-
protected $schema;
12-
protected $attributes = [];
10+
protected array $result = [];
11+
protected AbstractSchemaManager $schema;
12+
protected array $attributes = [];
1313

1414
public function getAttributes(): array
1515
{

src/Service/Generator/Definition/Entity/FieldEntity.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55

66
class FieldEntity
77
{
8-
protected $table = '';
9-
protected $columnName = '';
10-
protected $type = '';
11-
protected $arguments = [];
12-
protected $options = [];
8+
protected string $table = '';
9+
protected string $columnName = '';
10+
protected string $type = '';
11+
protected array $arguments = [];
12+
protected array $options = [];
1313

1414
/**
1515
* @return string

src/Service/Generator/Definition/Entity/ForeignKeyEntity.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66

77
class ForeignKeyEntity
88
{
9-
protected $name = '';
10-
protected $localTable = '';
11-
protected $localColumn = '';
12-
protected $referencedTable = '';
13-
protected $referencedColumn = '';
14-
protected $onDelete = '';
15-
protected $onUpdate = '';
9+
protected string $name = '';
10+
protected string $localTable = '';
11+
protected string $localColumn = '';
12+
protected string $referencedTable = '';
13+
protected string $referencedColumn = '';
14+
protected string $onDelete = '';
15+
protected string $onUpdate = '';
1616

1717
/**
1818
* @return string

0 commit comments

Comments
 (0)