Skip to content

Commit 53c3dd9

Browse files
williamdesDeepSeek
andcommitted
Declare the properties of the Report class
The class extends stdClass and fromObject() copies every key of the payload on the instance, so the properties are not declared and the analyzers report "The property user_os does not exist on App\Report". 78af93a354 made them readable without the curly braces, declare them for the analyzer instead. Co-authored-by: DeepSeek <noreply@deepseek.com> Signed-off-by: William Desportes <williamdes@wdes.fr>
1 parent 92899d9 commit 53c3dd9

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

‎src/Report.php‎

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,25 @@
2929

3030
/**
3131
* Represents an user report
32+
*
33+
* The properties below are the keys of the JSON payload sent by phpMyAdmin,
34+
* fromObject() copies all of them on the instance.
35+
*
36+
* @property string|null $browser_name
37+
* @property string|null $browser_version
38+
* @property string|null $configuration_storage
39+
* @property string|null $description
40+
* @property array<int, mixed>|null $errors
41+
* @property stdClass|null $exception
42+
* @property string|null $exception_type
43+
* @property string|null $locale
44+
* @property string|null $php_version
45+
* @property string|null $pma_version
46+
* @property string|null $script_name
47+
* @property string|null $server_software
48+
* @property string|null $uri
49+
* @property string|null $user_agent_string
50+
* @property string|null $user_os
3251
*/
3352
class Report extends stdClass
3453
{

0 commit comments

Comments
 (0)