Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion webapp/config/packages/doctrine.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,12 @@ doctrine:
#server_version: '15'
orm:
auto_generate_proxy_classes: true
enable_lazy_ghost_objects: false
report_fields_where_declared: true
validate_xml_mapping: true
naming_strategy: doctrine.orm.naming_strategy.underscore_number_aware
auto_mapping: true
controller_resolver:
auto_mapping: false
mappings:
App:
type: attribute
Expand Down
2 changes: 2 additions & 0 deletions webapp/src/Controller/Jury/AnalysisController.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
use App\Service\StatisticsService;
use Doctrine\ORM\EntityManagerInterface;
use Doctrine\ORM\Query\Expr;
use Symfony\Bridge\Doctrine\Attribute\MapEntity;
use Symfony\Component\HttpKernel\Attribute\MapQueryParameter;
use Symfony\Component\Security\Http\Attribute\IsGranted;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
Expand Down Expand Up @@ -99,6 +100,7 @@ public function teamAction(Team $team): Response

#[Route(path: '/problem/{probid}', name: 'analysis_problem')]
public function problemAction(
#[MapEntity(id: 'probid')]
Problem $problem,
#[MapQueryParameter]
?string $view = null
Expand Down
2 changes: 1 addition & 1 deletion webapp/src/Serializer/Shadowing/EventDataDenormalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public function denormalize(
string $type,
?string $format = null,
array $context = []
) {
): mixed {
if (!$this->supportsDenormalization($data, $type, $format, $context)) {
throw new InvalidArgumentException('Unsupported data.');
}
Expand Down
2 changes: 1 addition & 1 deletion webapp/src/Utils/Utils.php
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ public static function printsize(int $size, int $decimals = 1): string

$exact = true;
for ($i = 0; $i < count($units) && $display >= $factor; $i++) {
if (($display % $factor)!=0) {
if (((int)$display % $factor)!=0) {
$exact = false;
}
$display /= $factor;
Expand Down
Loading