Skip to content

Commit 74c2a76

Browse files
Merge pull request #15 from MarcinOrlowski/dev
Release 1.2.0
2 parents 1e53587 + 71a9008 commit 74c2a76

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+515
-106
lines changed

.github/workflows/codecov.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Lombok PHP - Write less code!
44
#
55
# @author Marcin Orlowski <mail (#) marcinOrlowski (.) com>
6-
# @copyright 2022 Marcin Orlowski
6+
# @copyright ©2022-2026 Marcin Orlowski
77
# @license https://opensource.org/licenses/LGPL-3.0 LGPL-3.0
88
# @link https://github.com/MarcinOrlowski/lombok-php
99
#
@@ -29,7 +29,7 @@ jobs:
2929
fail-fast: false
3030
matrix:
3131
# quotes are needed it is treated as a number and zero at decimal part is gone at runtime
32-
php: ["8.0", "8.1"]
32+
php: [ "8.0", "8.1", "8.2", "8.3", "8.4", "8.5" ]
3333

3434
runs-on: ubuntu-latest
3535

@@ -50,7 +50,7 @@ jobs:
5050
uses: php-actions/phpunit@v3
5151
with:
5252
bootstrap: "vendor/autoload.php"
53-
configuration: "phpunit.xml.dist"
53+
configuration: "phpunit.xml"
5454
php_extensions: "xdebug"
5555
args: --coverage-clover coverage.xml
5656
env:

.github/workflows/dependabot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Lombok PHP - Write less code!
44
#
55
# @author Marcin Orlowski <mail (#) marcinOrlowski (.) com>
6-
# @copyright 2022 Marcin Orlowski
6+
# @copyright ©2022-2026 Marcin Orlowski
77
# @license https://opensource.org/licenses/LGPL-3.0 LGPL-3.0
88
# @link https://github.com/MarcinOrlowski/lombok-php
99
#

.github/workflows/markdown.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Lombok PHP - Write less code!
44
#
55
# @author Marcin Orlowski <mail (#) marcinOrlowski (.) com>
6-
# @copyright 2022 Marcin Orlowski
6+
# @copyright ©2022-2026 Marcin Orlowski
77
# @license https://opensource.org/licenses/LGPL-3.0 LGPL-3.0
88
# @link https://github.com/MarcinOrlowski/lombok-php
99
#
@@ -43,4 +43,4 @@ jobs:
4343
with:
4444
# LICENSE is externally sourced and we're not going to fix it.
4545
exclude: "LICENSE.md"
46-
config_file: .markdownlint.yaml.dist
46+
config_file: .markdownlint.yaml

.github/workflows/phpstan.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Lombok PHP - Write less code!
44
#
55
# @author Marcin Orlowski <mail (#) marcinOrlowski (.) com>
6-
# @copyright 2022 Marcin Orlowski
6+
# @copyright ©2022-2026 Marcin Orlowski
77
# @license https://opensource.org/licenses/LGPL-3.0 LGPL-3.0
88
# @link https://github.com/MarcinOrlowski/lombok-php
99
#
@@ -27,7 +27,7 @@ jobs:
2727
fail-fast: false
2828
matrix:
2929
# quotes are needed it is treated as a number and zero at decimal part is gone at runtime
30-
php: [ "8.0", "8.1", "8.2" ]
30+
php: [ "8.3", "8.4", "8.5" ]
3131

3232
runs-on: ubuntu-latest
3333

@@ -47,6 +47,6 @@ jobs:
4747
- name: "Running PHPStan..."
4848
uses: php-actions/phpstan@v3
4949
with:
50-
configuration: "phpstan.neon.dist"
50+
configuration: "phpstan.neon"
5151
php_version: "${{ matrix.php }}"
5252
# memory_limit: 16M

.github/workflows/phpunit.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Lombok PHP - Write less code!
44
#
55
# @author Marcin Orlowski <mail (#) marcinOrlowski (.) com>
6-
# @copyright 2022 Marcin Orlowski
6+
# @copyright ©2022-2026 Marcin Orlowski
77
# @license https://opensource.org/licenses/LGPL-3.0 LGPL-3.0
88
# @link https://github.com/MarcinOrlowski/lombok-php
99
#
@@ -27,7 +27,7 @@ jobs:
2727
fail-fast: false
2828
matrix:
2929
# quotes are needed it is treated as a number and zero at decimal part is gone at runtime
30-
php: [ "8.0", "8.1", "8.2" ]
30+
php: [ "8.3", "8.4", "8.5" ]
3131

3232
runs-on: ubuntu-latest
3333

@@ -45,7 +45,8 @@ jobs:
4545

4646
# https://github.com/marketplace/actions/phpunit-php-actions
4747
- name: "Running PHPUnit..."
48-
uses: php-actions/phpunit@v3
48+
uses: php-actions/phpunit@v4
4949
with:
50+
php_version: "${{ matrix.php }}"
5051
bootstrap: "vendor/autoload.php"
51-
configuration: "phpunit.xml.dist"
52+
configuration: "phpunit.xml"

.gitignore

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,4 @@
99
*.swp
1010
*.bak
1111

12-
/.pre-commit-config.yaml
13-
/phpstan.neon
14-
/phpunit.xml
15-
/.markdownlint.yaml
16-
1712
/.phpunit.result.cache
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Lombok PHP - Write less code!
44
#
55
# @author Marcin Orlowski <mail (#) marcinOrlowski (.) com>
6-
# @copyright 2022 Marcin Orlowski
6+
# @copyright ©2022-2026 Marcin Orlowski
77
# @license https://opensource.org/licenses/LGPL-3.0 LGPL-3.0
88
# @link https://github.com/MarcinOrlowski/lombok-php
99
#
@@ -246,3 +246,5 @@ MD047: true
246246
MD048:
247247
# Code fence syle
248248
style: "consistent"
249+
250+
MD059: false # MOR
Lines changed: 31 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Lombok PHP - Write less code!
44
#
55
# @author Marcin Orlowski <mail (#) marcinOrlowski (.) com>
6-
# @copyright 2022 Marcin Orlowski
6+
# @copyright ©2022-2026 Marcin Orlowski
77
# @license https://opensource.org/licenses/LGPL-3.0 LGPL-3.0
88
# @link https://github.com/MarcinOrlowski/lombok-php
99
#
@@ -22,8 +22,6 @@
2222
# * Ensure you got Python installed
2323
# * Install pre-commit: `pip install pre-commit`
2424
# * Go to your project source code root directory
25-
# * Copy provided config file template:
26-
# `cp .pre-commit-config.yaml.dist .pre-commit-config.yaml`
2725
# * Plug hooks into Git pipeline: `pre-commit install`
2826
#
2927
# From now on, pre-commit hooks will be triggered on every commit. To temporarily disable them,
@@ -84,3 +82,33 @@ repos:
8482
# Runs PHPStan analyser
8583
- id: php-stan
8684
files: \.(php)$
85+
86+
- repo: https://github.com/hukkin/mdformat
87+
rev: 0.7.22 # Use the ref you want to point at
88+
hooks:
89+
- id: mdformat
90+
# Optionally add plugins
91+
additional_dependencies:
92+
- mdformat-gfm
93+
- mdformat-black
94+
-
95+
# https://github.com/pre-commit/pre-commit-hooks
96+
- repo: https://github.com/pre-commit/pre-commit-hooks
97+
rev: v5.0.0 # Use the ref you want to point at
98+
hooks:
99+
- id: check-executables-have-shebangs
100+
- id: check-merge-conflict
101+
- id: check-shebang-scripts-are-executable
102+
- id: trailing-whitespace
103+
- id: check-json
104+
- id: check-yaml
105+
- id: check-toml
106+
- id: pretty-format-json
107+
args: [ '--autofix', '--no-sort-keys' ]
108+
109+
- repo: https://github.com/digitalpulp/pre-commit-php.git
110+
rev: 1.4.0
111+
hooks:
112+
# Runs PHPStan analyser
113+
- id: php-stan
114+
files: \.(php)$

CHANGES.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@
44

55
# CHANGE LOG #
66

7+
* 1.2.0 (2026-01-08)
8+
* Added support for "readonly" properties
9+
* Added `HelperReadonly` class to support "readonly" classes
10+
* Added support for PHP 8.3, 8.4 and 8.5
11+
* Improved code typehints for linter joy
12+
* Updated tests
13+
14+
715
* 1.1.1 (2023-10-10)
816
* Rewrote documentation
917

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ boilerplate code in your project by providing commonly used functionality that c
2828
applied.
2929

3030
The main goal is to provide all the functionality **at runtime**, without any intermediate steps
31-
needed and **without code generation**.
31+
needed and **without generating any additional code files**.
3232

3333
And yes, the project name is shamelessly borrowed from the beloved
3434
Java's [Project Lombok](https://projectlombok.org/). However, it is not affiliated in any way; it's
@@ -102,6 +102,6 @@ class Entity extends \Lombok\Helper {
102102

103103
## License ##
104104

105-
* Written and copyrighted &copy;2022-2023 by Marcin Orlowski <mail (#) marcinorlowski (.) com>
105+
* Written and copyrighted &copy;2022-2026 by Marcin Orlowski <mail (#) marcinorlowski (.) com>
106106
* `Lombok PHP` is open-sourced software licensed under
107107
the [LGPL 3.0](https://opensource.org/licenses/LGPL-3.0)

0 commit comments

Comments
 (0)