Ticket #58 (closed defect: fixed)

Opened 5 years ago

Last modified 5 years ago

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…

Change History

Changed 5 years ago by kmeirlaen

  • status changed from new to closed
  • resolution set to fixed

Changed 5 years ago by marcosdsanchez

  • milestone changed from 1.0.0 RC2 to 1.0.0 RC1

Changed 5 years ago by marcosdsanchez

  • version set to 1.0.0 RC1
Note: See TracTickets for help on using tickets.