Skip to content

Commit

Permalink
Bump php + auditor
Browse files Browse the repository at this point in the history
  • Loading branch information
a-menshchikov committed Jun 13, 2024
1 parent 4c86160 commit 16bcb4d
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/audit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,6 @@ jobs:
echo "::endgroup::"
- name: Auditor
uses: docker://nbgrp/auditor:0.20.0
uses: docker://nbgrp/auditor:0.26.0
with:
working-directory: shared/homeless
4 changes: 2 additions & 2 deletions docker/app/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM php:8.3.2-fpm-alpine
FROM php:8.3.8-fpm-alpine

#
# Setup Moscow time
Expand Down Expand Up @@ -36,7 +36,7 @@ RUN apk update \
nodejs \
yarn \
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/bin --filename=composer \
&& composer self-update 2.5.1 \
&& composer self-update 2.7.1 \
&& docker-php-ext-install \
bcmath \
gd \
Expand Down
2 changes: 1 addition & 1 deletion docker/local/php/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM php:8.3.2-fpm-alpine
FROM php:8.3.8-fpm-alpine

USER root

Expand Down
5 changes: 3 additions & 2 deletions shared/homeless/src/Admin/ClientAdmin.php
Original file line number Diff line number Diff line change
Expand Up @@ -262,8 +262,7 @@ public function configureShowFields(ShowMapper $show): void
foreach ($showMapperAdditionalInfoSort as $showMapperAdditionalInfoSortItems) {
foreach ($showMapperAdditionalInfoSortItems as $item) {
if (isset($item['add'])) {
$reflectionMethod = new \ReflectionMethod(ShowMapper::class, 'add');
$reflectionMethod->invokeArgs($show, $item['add']);
$show->add(...$item['add']);
}
}
}
Expand Down Expand Up @@ -545,6 +544,8 @@ protected function configureFormFields(FormMapper $form): void
'label' => 'Не бездомный',
'label_attr' => ['class' => 'changeSelectinsData'],
'required' => false,
'getter' => static fn (Client $client): bool => !$client->isHomeless(),
'setter' => static fn (Client $client, bool $value): Client => $client->setIsHomeless(!$value),
])
;
}
Expand Down
12 changes: 0 additions & 12 deletions shared/homeless/src/Entity/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -623,18 +623,6 @@ public function setIsHomeless(bool $isHomeless): self
return $this;
}

public function notIsHomeless(): bool
{
return !$this->isHomeless;
}

public function setNotIsHomeless(bool $notIsHomeless): self
{
$this->isHomeless = !$notIsHomeless;

return $this;
}

public function getClientViews(): Collection
{
return $this->clientViews;
Expand Down

0 comments on commit 16bcb4d

Please sign in to comment.