Ticket #58 (closed defect: fixed)
Another glitch with PHP < 5.2.x
| Reported by: | kmeirlaen | Owned by: | somebody |
|---|---|---|---|
| Priority: | important | Milestone: | 1.0 RC1 |
| Component: | Other | Version: | 1.0.0 RC1 |
| Keywords: | Cc: |
Description
Apparently, older PHP versions have problems with typed parameters which have a default value. Or null doesn’t qualify as being of the correct type. either way I receive an error:
Fatal error: Argument 3 must not be null in /var/www/html/includes/qcodo/_core/framework/QQuery.class.php on line 119
The line looks like:
public function GetColumnAlias?(QQueryBuilder $objBuilder, $blnExpandSelection = false, QQCondition $objJoinCondition = null) {
Changing this to the following fixes the problem. Not sure if it is the “nice” way to fix it, but it works for me…
public function GetColumnAlias?(QQueryBuilder $objBuilder, $blnExpandSelection = false, $objJoinCondition = null) {
—-—-—-
Similar issues creep up with other methods in the same file…
