We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f50fe41 commit a60f4e5Copy full SHA for a60f4e5
src/Exercise/UniteTheTypes.php
@@ -1,6 +1,5 @@
1
<?php
2
3
-
4
namespace PhpSchool\PHP8Appreciate\Exercise;
5
6
use PhpParser\Node\Identifier;
@@ -29,9 +28,6 @@ class UniteTheTypes extends AbstractExercise implements
29
28
SelfCheck,
30
SubmissionPatchable
31
{
32
33
- private float $total;
34
35
public function __construct(private Parser $parser, private FakerGenerator $faker)
36
37
}
@@ -62,9 +58,7 @@ function (): string {
62
58
},
63
59
range(0, random_int(5, 15))
64
60
);
65
66
- $this->total = array_sum($numbers);
67
61
+
68
return [$numbers];
69
70
0 commit comments