Skip to content

Commit c339851

Browse files
-
1 parent 7205818 commit c339851

File tree

4 files changed

+24
-30
lines changed

4 files changed

+24
-30
lines changed

composer.lock

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

docs/index.md

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ If you have SSL certificates, add ```-v /path/privkey.pem:/etc/nginx/privkey.pem
142142
[(Back to source installation)](#source-installation)
143143

144144
- Web server
145-
- PHP 7.2.5 or higher (7.4 recommended): [Visit](https://symfony.com/doc/current/setup/web_server_configuration.html)
145+
- PHP 8: [Visit](https://symfony.com/doc/current/setup/web_server_configuration.html)
146146
- Composer: [Visit](https://getcomposer.org/download/)
147147
- npm: [Visit](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm)
148148

@@ -248,12 +248,6 @@ server {
248248

249249
Download or clone the repository from GitHub [Visit](https://github.com/stephanediondev/elasticsearch-admin)
250250

251-
If you don't have PHP 7.4, remove ```composer.lock``` or you will have the error below
252-
253-
```
254-
Fatal Error: composer.lock was created for PHP version 7.4 or higher but the current PHP version is ...
255-
```
256-
257251
Launch the following commands to install
258252

259253
```

src/Model/AbstractAppModel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
abstract class AbstractAppModel
77
{
8-
public function convertBoolean($value): bool
8+
public function convertBoolean(mixed $value): bool
99
{
1010
if ('false' === $value) {
1111
return false;

src/Twig/AppExtension.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public function humanVersion(string $version): string
7777
return $xx.'.'.intval($yy).'.'.intval($zz);
7878
}
7979

80-
public function humanDatetime($datetime, string $format = 'D, d M Y H:i'): string
80+
public function humanDatetime(mixed $datetime, string $format = 'D, d M Y H:i'): string
8181
{
8282
if ($datetime instanceof \Datetime) {
8383
return $datetime->format($format);
@@ -125,7 +125,7 @@ public function retrieveSort(ElasticsearchIndexModel $index, string $field): str
125125
return $sort;
126126
}
127127

128-
public function retrieveValue(array $source, string $field)
128+
public function retrieveValue(array $source, string $field): mixed
129129
{
130130
$value = false;
131131

0 commit comments

Comments
 (0)