Skip to content

Commit fe734bc

Browse files
Get rid of some deprecations
1 parent f74b3bd commit fe734bc

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

webapp/config/packages/doctrine.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,12 @@ doctrine:
2424
#server_version: '15'
2525
orm:
2626
auto_generate_proxy_classes: true
27-
enable_lazy_ghost_objects: false
2827
report_fields_where_declared: true
2928
validate_xml_mapping: true
3029
naming_strategy: doctrine.orm.naming_strategy.underscore_number_aware
3130
auto_mapping: true
31+
controller_resolver:
32+
auto_mapping: false
3233
mappings:
3334
App:
3435
type: attribute

webapp/src/Serializer/Shadowing/EventDataDenormalizer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public function denormalize(
2828
string $type,
2929
?string $format = null,
3030
array $context = []
31-
) {
31+
): mixed {
3232
if (!$this->supportsDenormalization($data, $type, $format, $context)) {
3333
throw new InvalidArgumentException('Unsupported data.');
3434
}

webapp/src/Utils/Utils.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ public static function printsize(int $size, int $decimals = 1): string
441441

442442
$exact = true;
443443
for ($i = 0; $i < count($units) && $display >= $factor; $i++) {
444-
if (($display % $factor)!=0) {
444+
if (((int)$display % $factor)!=0) {
445445
$exact = false;
446446
}
447447
$display /= $factor;

0 commit comments

Comments
 (0)