Skip to content

Commit

Permalink
Merge pull request #136 from 10up/feature/update-azure-blob-api
Browse files Browse the repository at this point in the history
Update Azure Storage Service API_VERSION
  • Loading branch information
jeffpaul authored Oct 3, 2023
2 parents 8536c16 + 50af6b7 commit 3b7f2fa
Show file tree
Hide file tree
Showing 293 changed files with 56,410 additions and 1,476 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/php-compatibility.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:

jobs:
php_compatibility:
name: PHP minimum 7.4
name: PHP minimum 8.0
runs-on: ubuntu-latest

steps:
Expand All @@ -21,12 +21,12 @@ jobs:
- name: Set PHP version
uses: shivammathur/setup-php@v2
with:
php-version: 7.4
php-version: 8.0
tools: composer:v2
coverage: none

- name: Install dependencies
run: composer install

- name: Run PHP Compatibility
run: vendor/bin/phpcs windows-azure-storage.php includes/ -p --standard=PHPCompatibilityWP --extensions=php --runtime-set testVersion 7.4-
run: vendor/bin/phpcs windows-azure-storage.php includes/ -p --standard=PHPCompatibilityWP --extensions=php --runtime-set testVersion 8.0-
8 changes: 7 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
node_modules/
vendor/
vendor/*
!vendor/autoload.php
!vendor/composer
!vendor/microsoft
!vendor/guzzlehttp
!vendor/psr
!vendor/ralouphie
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ For more details on configuring a Microsoft Azure Storage account and on using t

## Requirements

* PHP 7.4+
* PHP 8.0+ (For PHP 7.4 support you need to use 4.3.5)
* [WordPress](http://wordpress.org/) 5.7+

## Installation
Expand Down
2 changes: 1 addition & 1 deletion bin/wp-cli.php
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ public function list_blobs( $args, $assoc_args ) {
}
$items = array();
foreach ( $blobs as $blob ) {
$items[] = $blob;
$items[] = [ 'Name' => $blob->getName() ];
}

if ( empty( $items ) ) {
Expand Down
6 changes: 4 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,15 @@
],
"minimum-stability": "dev",
"require": {
"php": ">=7.4"
"php": ">=8.0",
"microsoft/azure-storage-blob": "1.5.3",
"microsoft/azure-storage-common": "1.5.2"
},
"require-dev": {
"10up/phpcs-composer": "dev-master"
},
"scripts": {
"phpcs:compat": "vendor/bin/phpcs windows-azure-storage.php includes/ -p --standard=PHPCompatibilityWP --extensions=php --runtime-set testVersion 7.4-"
"phpcs:compat": "vendor/bin/phpcs windows-azure-storage.php includes/ -p --standard=PHPCompatibilityWP --extensions=php --runtime-set testVersion 8.0-"
},
"config": {
"allow-plugins": {
Expand Down
Loading

0 comments on commit 3b7f2fa

Please sign in to comment.