Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop PHP 7.4 and PHP 8.0 support #154

Merged
merged 53 commits into from Nov 19, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
984b5a6
Drop PHP 7 support to improve type inference
Ocramius Nov 18, 2022
b310381
Deprecating `ParameterReflection#detectType()` and its callers
Ocramius Nov 18, 2022
9f5036b
Further restricting supported PHP version to `~8.1.0`
Ocramius Nov 18, 2022
c1194ac
Removed execution branches that are no longer reachable as per PHP 8.1
Ocramius Nov 18, 2022
d6b1e4d
Refactored `EnumGenerator` internals to leverage PHP 8.1 semantics
Ocramius Nov 18, 2022
8032b87
Corrected inference imprecisions in `ClassGenerator::fromReflection()…
Ocramius Nov 18, 2022
7b43090
Adjusted sorting of docblock deprecations
Ocramius Nov 18, 2022
3c509cd
Re-generated psalm baseline
Ocramius Nov 18, 2022
8935aa3
Cleaning up `ParameterReflection` internals to get rid of low-hanging…
Ocramius Nov 18, 2022
fb722e0
Cleaning up `MethodReflection` internals to get rid of low-hanging st…
Ocramius Nov 18, 2022
6419d21
Deprecate `FunctionReflection#getReturn()`, which was initially abuse…
Ocramius Nov 18, 2022
8f3de55
Removed unused import
Ocramius Nov 18, 2022
ab1312b
Rewrote `FunctionReflection#getParameters()` to match parent types
Ocramius Nov 18, 2022
c7dcbb8
Adjusted parameter name to match parent class parameter name
Ocramius Nov 18, 2022
d4b761e
Adjusted parameter name to match parent class parameter name
Ocramius Nov 18, 2022
373c3ea
More precise definition of `ThrowsTag#$description` state
Ocramius Nov 18, 2022
59b3947
Better type definitions around `ReturnTag`
Ocramius Nov 18, 2022
25c294b
Better type definitions around `PropertyTag`
Ocramius Nov 18, 2022
8266966
Better type definitions around `ParamTag`
Ocramius Nov 18, 2022
d5f1ec1
Better type definitions around `MethodTag`
Ocramius Nov 18, 2022
4eafd0d
Better type definitions around `LicenseTag`
Ocramius Nov 18, 2022
2abd393
Better type definitions around `GenericTag`
Ocramius Nov 18, 2022
c99a924
Better type definitions around `AuthorTag`
Ocramius Nov 18, 2022
fc3d146
Aligning `ClassReflection` types to PHP's `ReflectionClass` parent si…
Ocramius Nov 18, 2022
f66517e
Improved `PrototypeClassFactory` internal types
Ocramius Nov 18, 2022
40d9e7e
Improved `ValueGenerator` internal types
Ocramius Nov 18, 2022
a994a53
Deprecating `ValueGenerator#initEnvironmentConstants()`
Ocramius Nov 18, 2022
638cfda
Refining `TraitUsageInterface` types
Ocramius Nov 18, 2022
667463f
Refining `PropertyGenerator` types
Ocramius Nov 18, 2022
993bb94
Refining `ParameterGenerator` types
Ocramius Nov 18, 2022
6c1b254
Refining `InterfaceGenerator` and `MethodGenerator` types
Ocramius Nov 18, 2022
d5f3886
Refining `FileGenerator` types
Ocramius Nov 18, 2022
a18791d
Refining `AbstractTypeableTag` types
Ocramius Nov 18, 2022
3d86e90
Refining `PropertyTag` types
Ocramius Nov 18, 2022
ffa2dda
Refining `MethodTag` types
Ocramius Nov 18, 2022
9ba9cec
Refining `LicenseTag` types
Ocramius Nov 18, 2022
9ff6ac1
Refining `AuthorTag` types
Ocramius Nov 18, 2022
9d367b1
Refining `Tag` types
Ocramius Nov 18, 2022
d73a64a
Refining `ClassGenerator` and `TraitUsage*` types
Ocramius Nov 19, 2022
fec8485
Replacing `is_object($v) ? get_class($v) : gettype($v)` ternaries wit…
Ocramius Nov 19, 2022
78d7f80
Regenerated psalm baseline with the now in place type improvements co…
Ocramius Nov 19, 2022
2145694
Rewrote `ParameterReflection#getClass()` to match previous behavior
Ocramius Nov 19, 2022
6e5e3e2
Since we now use `get_debug_type()` for some errors, adjusting associ…
Ocramius Nov 19, 2022
52f2c24
Using CI setup that we use in all other repositories
Ocramius Nov 19, 2022
172ce58
Added default Laminas CI setup
Ocramius Nov 19, 2022
a362091
Applied automated CS fixes
Ocramius Nov 19, 2022
487c2e2
Moved complex array shape docblock to the class definition, to avoid …
Ocramius Nov 19, 2022
07b00d1
Corrected inheritDoc syntax as per code review suggestions
Ocramius Nov 19, 2022
2e5b315
Corrected inheritDoc syntax as per code review suggestions
Ocramius Nov 19, 2022
a9d601d
Added a default execution branch that returns `null` in `MethodReflec…
Ocramius Nov 19, 2022
66064ca
Applied De Morgan's law to a complex boolean expression to improve re…
Ocramius Nov 19, 2022
dd68158
Replaced `{@inheritDoc}` with `@inheritDoc` where the whole parent do…
Ocramius Nov 19, 2022
6373921
Simplified `EnumGenerator` to have more explicit codegen logic around…
Ocramius Nov 19, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
56 changes: 0 additions & 56 deletions .github/workflows/coding-standards.yml

This file was deleted.

11 changes: 11 additions & 0 deletions .github/workflows/continuous-integration.yml
@@ -0,0 +1,11 @@
name: "Continuous Integration"

on:
pull_request:
push:
branches:
tags:

jobs:
ci:
uses: laminas/workflow-continuous-integration/.github/workflows/continuous-integration.yml@1.x
7 changes: 3 additions & 4 deletions .github/workflows/docs-build.yml
Expand Up @@ -3,8 +3,7 @@ name: docs-build
on:
release:
types: [published]
repository_dispatch:
types: docs-build
workflow_dispatch:

jobs:
build-deploy:
Expand All @@ -13,5 +12,5 @@ jobs:
- name: Build Docs
uses: laminas/documentation-theme/github-actions/docs@master
env:
"DOCS_DEPLOY_KEY": ${{ secrets.DOCS_DEPLOY_KEY }}
"GITHUB_TOKEN": ${{ secrets.GITHUB_TOKEN }}
DOCS_TOKEN: ${{ secrets.ORGANIZATION_ADMIN_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
60 changes: 0 additions & 60 deletions .github/workflows/phpunit.yml

This file was deleted.

56 changes: 0 additions & 56 deletions .github/workflows/psalm.yml

This file was deleted.

68 changes: 6 additions & 62 deletions .github/workflows/release-on-milestone-closed.yml
@@ -1,9 +1,3 @@
# Alternate workflow example.
# This one is identical to the one in release-on-milestone.yml, with one change:
# the Release step uses the ORGANIZATION_ADMIN_TOKEN instead, to allow it to
# trigger a release workflow event. This is useful if you have other actions
# that intercept that event.

name: "Automatic Releases"

on:
Expand All @@ -13,59 +7,9 @@ on:

jobs:
release:
name: "GIT tag, release & create merge-up PR"
runs-on: ubuntu-latest

steps:
- name: "Checkout"
uses: "actions/checkout@v3"

- name: "Release"
uses: "laminas/automatic-releases@v1"
with:
command-name: "laminas:automatic-releases:release"
env:
"GITHUB_TOKEN": ${{ secrets.ORGANIZATION_ADMIN_TOKEN }}
"SIGNING_SECRET_KEY": ${{ secrets.SIGNING_SECRET_KEY }}
"GIT_AUTHOR_NAME": ${{ secrets.GIT_AUTHOR_NAME }}
"GIT_AUTHOR_EMAIL": ${{ secrets.GIT_AUTHOR_EMAIL }}

- name: "Create Merge-Up Pull Request"
uses: "laminas/automatic-releases@v1"
with:
command-name: "laminas:automatic-releases:create-merge-up-pull-request"
env:
"GITHUB_TOKEN": ${{ secrets.GITHUB_TOKEN }}
"SIGNING_SECRET_KEY": ${{ secrets.SIGNING_SECRET_KEY }}
"GIT_AUTHOR_NAME": ${{ secrets.GIT_AUTHOR_NAME }}
"GIT_AUTHOR_EMAIL": ${{ secrets.GIT_AUTHOR_EMAIL }}

- name: "Create and/or Switch to new Release Branch"
uses: "laminas/automatic-releases@v1"
with:
command-name: "laminas:automatic-releases:switch-default-branch-to-next-minor"
env:
"GITHUB_TOKEN": ${{ secrets.ORGANIZATION_ADMIN_TOKEN }}
"SIGNING_SECRET_KEY": ${{ secrets.SIGNING_SECRET_KEY }}
"GIT_AUTHOR_NAME": ${{ secrets.GIT_AUTHOR_NAME }}
"GIT_AUTHOR_EMAIL": ${{ secrets.GIT_AUTHOR_EMAIL }}

- name: "Bump Changelog Version On Originating Release Branch"
uses: "laminas/automatic-releases@v1"
with:
command-name: "laminas:automatic-releases:bump-changelog"
env:
"GITHUB_TOKEN": ${{ secrets.GITHUB_TOKEN }}
"SIGNING_SECRET_KEY": ${{ secrets.SIGNING_SECRET_KEY }}
"GIT_AUTHOR_NAME": ${{ secrets.GIT_AUTHOR_NAME }}
"GIT_AUTHOR_EMAIL": ${{ secrets.GIT_AUTHOR_EMAIL }}

- name: "Create new milestones"
uses: "laminas/automatic-releases@v1"
with:
command-name: "laminas:automatic-releases:create-milestones"
env:
"GITHUB_TOKEN": ${{ secrets.GITHUB_TOKEN }}
"SIGNING_SECRET_KEY": ${{ secrets.SIGNING_SECRET_KEY }}
"GIT_AUTHOR_NAME": ${{ secrets.GIT_AUTHOR_NAME }}
"GIT_AUTHOR_EMAIL": ${{ secrets.GIT_AUTHOR_EMAIL }}
uses: laminas/workflow-automatic-releases/.github/workflows/release-on-milestone-closed.yml@1.x
secrets:
GIT_AUTHOR_EMAIL: ${{ secrets.GIT_AUTHOR_EMAIL }}
GIT_AUTHOR_NAME: ${{ secrets.GIT_AUTHOR_NAME }}
ORGANIZATION_ADMIN_TOKEN: ${{ secrets.ORGANIZATION_ADMIN_TOKEN }}
SIGNING_SECRET_KEY: ${{ secrets.SIGNING_SECRET_KEY }}
9 changes: 3 additions & 6 deletions composer.json
Expand Up @@ -9,7 +9,7 @@
"homepage": "https://laminas.dev",
"license": "BSD-3-Clause",
"require": {
"php": ">=7.4, <8.2"
"php": "~8.1.0"
Ocramius marked this conversation as resolved.
Show resolved Hide resolved
},
"require-dev": {
"ext-phar": "*",
Expand All @@ -29,17 +29,14 @@
"dealerdirect/phpcodesniffer-composer-installer": true
},
"platform": {
"php": "7.4.99"
"php": "8.1.99"
},
"sort-packages": true
},
"autoload": {
"psr-4": {
"Laminas\\Code\\": "src/"
},
"files": [
"polyfill/ReflectionEnumPolyfill.php"
]
}
},
"autoload-dev": {
"psr-4": {
Expand Down