Ticket #508 (closed defect: fixed)

Opened 21 months ago

Last modified 21 months ago

CultureInfo class: PHP Notice because of missing static declaration

Reported by: philipp Owned by: xue
Priority: immediate Milestone: 3.0.7
Component: Prado Framework v3 Version: 3.0
Severity: minor Keywords:
Cc:

Description

The documentation and some prado code use CultureInfo::validCulture() in a static way, but it is not declared static. This results in PHP notices (Non-static method CultureInfo::validCulture() should not be called statically, assuming $this from incompatible context).

File which uses !CultureInfo::validCulture() that way:

framework/I18N/core/HTTPNegotiator.php on line 94 (prado 3.0.6)

Fix: In file framework/I18N/core/CultureInfo.php change public function validCulture($culture) to public static function validCulture($culture)

Change History

Changed 21 months ago by wei

  • status changed from new to closed
  • resolution set to fixed
Note: See TracTickets for help on using tickets.