Skip to content

Commit 82abd27

Browse files
authored
Merge pull request #25 from wearenolte/php8-composer-update
Update composer & libraries
2 parents 7b008dc + 8ac93ce commit 82abd27

12 files changed

Lines changed: 398 additions & 387 deletions

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
language: php
22
sudo: false
33
php:
4-
- 5.4
4+
- 7.4
5+
- 8.0
56

67
install:
78
- composer self-update;

README.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,13 @@ All custom widget objects must extend the ```\Lean\Widgets\Models\AbstractWidget
6262
You can register widget areas using the usual WordPress function:
6363

6464
```php
65-
register_sidebar( array(
66-
'id' => 'my-sidebar',
67-
'name' => 'Name',
68-
'description' => 'My new sidebar',
69-
) );
65+
register_sidebar(
66+
[
67+
'id' => 'my-sidebar',
68+
'name' => 'Name',
69+
'description' => 'My new sidebar',
70+
]
71+
);
7072
```
7173

7274
### Creating Custom Widgets

codesniffer.ruleset.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
<exclude name="Squiz.Commenting.FileComment" />
1111
<exclude name="Squiz.Commenting.FunctionComment" />
1212
<exclude name="WordPress.Files.FileName" />
13-
<exclude name="WordPress.VIP.SuperGlobalInputUsage" />
13+
<exclude name="Generic.Arrays.DisallowShortArraySyntax.Found" />
14+
<exclude name="WordPress.NamingConventions.ValidHookName" />
1415
</rule>
1516
</ruleset>

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
}
1313
],
1414
"require": {
15-
"php": ">=5.4",
15+
"php": ">=7.4 || 8.0",
1616
"moxie-lean/wp-acf": "1.*.*"
1717
},
1818
"autoload": {
@@ -21,8 +21,8 @@
2121
}
2222
},
2323
"require-dev": {
24-
"squizlabs/php_codesniffer": "2.*",
25-
"wp-coding-standards/wpcs": "0.9.0"
24+
"squizlabs/php_codesniffer": "3.*",
25+
"wp-coding-standards/wpcs": "2.*"
2626
},
2727
"scripts": {
2828
"installSniffer": [

composer.lock

Lines changed: 55 additions & 59 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Collection/LeanContactDetails.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ public function __construct() {
2424
public function get_data() {
2525
$data = parent::get_data();
2626

27-
$data['logo'] = Acf::get_option_field( 'contact_details_logo' );
27+
$data['logo'] = Acf::get_option_field( 'contact_details_logo' );
2828
$data['address'] = Acf::get_option_field( 'contact_details_address' );
29-
$data['phone'] = Acf::get_option_field( 'contact_details_phone' );
30-
$data['email'] = Acf::get_option_field( 'contact_details_email' );
29+
$data['phone'] = Acf::get_option_field( 'contact_details_phone' );
30+
$data['email'] = Acf::get_option_field( 'contact_details_email' );
3131

3232
return $data;
3333
}

0 commit comments

Comments
 (0)