Skip to content

Commit

Permalink
Merge branch 'release/2.2.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
adrenth committed Nov 28, 2022
2 parents 2e5c758 + 8544c3f commit d20bb3f
Show file tree
Hide file tree
Showing 8 changed files with 39 additions and 17 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
strategy:
fail-fast: true
matrix:
php: [ 8.0, 7.4 ]
php: [ 8.0 ]
stability: [ prefer-lowest, prefer-stable ]

name: PHP ${{ matrix.php }} - ${{ matrix.stability }}
Expand All @@ -28,6 +28,9 @@ jobs:
php-version: ${{ matrix.php }}
coverage: none

- name: Add HTTP basic auth credentials
run: echo '${{ secrets.VDLP_OCTOBER_CMS_AUTH_JSON }}' > $GITHUB_WORKSPACE/auth.json

- name: Validate composer.json and composer.lock
run: composer validate

Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
.idea
vendor
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [2.2.0] - 2022-11-28

### Changes

- Drop support for PHP 7.4
- Drop support for October CMS 1.x

## [2.1.0] - 2022-03-05

### Changes
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ You can also decode those ids back. This is useful in bundling several parameter

## Requirements

* PHP 7.4 or higher
* October CMS 1.x or 2.x
* PHP 8.0.2 or higher
* October CMS 2.x or higher

## Installation

Expand Down
8 changes: 3 additions & 5 deletions classes/Hashids.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,9 @@

class Hashids implements HashidsInterface
{
private HashidsHelper $hashids;

public function __construct(HashidsHelper $hashids)
{
$this->hashids = $hashids;
public function __construct(
private HashidsHelper $hashids
) {
}

/**
Expand Down
10 changes: 4 additions & 6 deletions classes/HashidsManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,11 @@
class HashidsManager
{
protected array $instances = [];
protected Repository $config;
protected HashidsFactory $factory;

public function __construct(Repository $config, HashidsFactory $factory)
{
$this->config = $config;
$this->factory = $factory;
public function __construct(
protected Repository $config,
protected HashidsFactory $factory
) {
}

/**
Expand Down
20 changes: 17 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,31 @@
"email": "[email protected]"
}
],
"support": {
"email": "[email protected]"
},
"require": {
"php": "^7.4 || ^8.0",
"php": "^8.0.2",
"composer/installers": "^1.0 || ^2.0",
"hashids/hashids": "^4.0",
"october/system": "^1.0 || ^2.0"
"hashids/hashids": "^4.1",
"october/rain": ">=2.0"
},
"repositories": [
{
"type": "composer",
"url": "https://gateway.octobercms.com"
}
],
"archive": {
"exclude": [
".gitignore",
".github",
".idea/"
]
},
"config": {
"allow-plugins": {
"composer/installers": true
}
}
}
1 change: 1 addition & 0 deletions updates/version.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ v1.1.0:
v2.0.0: Drop PHP 7.1 support
v2.0.1: Update plugin dependencies
v2.1.0: Maintenance release
v2.2.0: Drop PHP 7.4 support / Drop October CMS 1.x support

0 comments on commit d20bb3f

Please sign in to comment.