Skip to content

Commit

Permalink
PHP7: Remove old-style constructors
Browse files Browse the repository at this point in the history
PHP4-style constructors are deprecated in PHP7.

Fixes #20501
  • Loading branch information
dregad committed Jan 11, 2016
1 parent 3d0c69c commit a9731e9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion core/graphviz_api.php
Expand Up @@ -183,7 +183,7 @@ class Graph {
* @param string $p_com_module
* @return null
*/
function Graph( $p_name = 'G', $p_attributes = array(), $p_tool = 'neato', $p_com_module = 'WinGraphviz.NEATO' ) {
function __construct( $p_name = 'G', $p_attributes = array(), $p_tool = 'neato', $p_com_module = 'WinGraphviz.NEATO' ) {
if( is_string( $p_name ) ) {
$this->name = $p_name;
}
Expand Down
2 changes: 1 addition & 1 deletion core/user_pref_api.php
Expand Up @@ -93,7 +93,7 @@ class UserPreferences {
* @param int $p_user_id
* @param int $p_project_id
*/
function UserPreferences( $p_user_id, $p_project_id ) {
function __construct( $p_user_id, $p_project_id ) {
$this->default_profile = 0;
$this->default_project = ALL_PROJECTS;

Expand Down
6 changes: 3 additions & 3 deletions plugins/MantisGraph/core/Period.php
Expand Up @@ -41,9 +41,9 @@ class Period {

// ******* End vars *********************************************
/**
* Constructor
*/
function Period() {
* Constructor
*/
function __construct() {
$this->start = '';

// default to today
Expand Down

0 comments on commit a9731e9

Please sign in to comment.