You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Object parameters should be type hinted
MinorBugrisk
in Drivers/Query/PdoQuery.php, line 115
protected function prepareStatement($db, $query)
The parameter db, which is an object, should be typehinted.
Methods and properties visibility should always be explicitly defined 5
InfoReadability
in Drivers/Query/PdoQuery.php, line 40
abstract function createTableQuery();
This method has no explicit visibility which may lead to maintenability issues. You should always declare a visibility for methods and properties.
Hi
Thank you for your great work with this bundle and your contribution to the open source community.
I have put the bundle through Sensiolabs Insights code scanning and just wanted to share the findings with you.
The scanning found 1 Major, 1 minor issue and 1 info issue.
They are:
Absolute path constants DIR and FILE should not be used
MajorBugrisk
in Drivers/ShmDriver.php, line 52
$key = ftok(FILE, 'm');
DIR and FILE constants may conflict with the Symfony resource overriding system
For more information see https://insight.sensiolabs.com/what-we-analyse/symfony.dependency_injection.use_dir_file_constant
Object parameters should be type hinted
MinorBugrisk
in Drivers/Query/PdoQuery.php, line 115
protected function prepareStatement($db, $query)
The parameter db, which is an object, should be typehinted.
For more information see https://insight.sensiolabs.com/what-we-analyse/php.object_parameter_not_type_hinted
Methods and properties visibility should always be explicitly defined 5
InfoReadability
in Drivers/Query/PdoQuery.php, line 40
abstract function createTableQuery();
This method has no explicit visibility which may lead to maintenability issues. You should always declare a visibility for methods and properties.
For more information see https://insight.sensiolabs.com/what-we-analyse/php.method_or_property_missing_visibility
If possible for you to fix these issues/comments/recommendations with a future commit, it will be appreciated.
Kind Regards
Renier Lewis
The text was updated successfully, but these errors were encountered: