/
vshmidt
/
php
Обзор
Документация
Войти
/
vshmidt
/
php
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
ext/opcache/tests/bug75608.phpt
35 строк
935 B
Max Semenik
Migrate skip checks to --EXTENSIONS--, p3
03 апр 2021, 16:23
03 апр 2021, 16:23
e9f783f
Код
Авторство
О чём код?
--TEST-- Bug #75608 ("Narrowing occurred during type inference" error) --EXTENSIONS-- opcache --FILE-- <?php class ReactionRatingService { public function calculateBoostPoints() { while ($reaction = $reactions) { $reactionRatings = $this->validFunction(); $totalWeight = 0; $runningScore = 0; $queue = []; foreach ($reactionRatings as $ratingData) { if ($runningScore != $reaction['Score']) { if ( ! $ratingData['BoostEarned']) { $queue[] = $ratingData['UserID']; } } else { foreach ($queue as $userId) { $userBoostPointsRecalculate[$userId][] = $reaction['ID']; } } $totalWeight += $ratingData['Weight']; } } } } ?> OK --EXPECT-- OK