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 9d8d010 commit baae433
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion core/graphviz_api.php
Expand Up @@ -211,7 +211,7 @@ class Graph {
* @param array $p_attributes Attributes.
* @param string $p_tool Graph generation tool.
*/
function Graph( $p_name = 'G', array $p_attributes = array(), $p_tool = 'neato' ) {
function __construct( $p_name = 'G', array $p_attributes = array(), $p_tool = '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 @@ -223,7 +223,7 @@ class UserPreferences {
* @param integer $p_user_id A valid user identifier.
* @param integer $p_project_id A valid project identifier.
*/
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
2 changes: 1 addition & 1 deletion plugins/MantisGraph/core/Period.php
Expand Up @@ -46,7 +46,7 @@ class Period {
/**
* Constructor
*/
function Period() {
function __construct() {
$this->start = '';

# default to today
Expand Down

0 comments on commit baae433

Please sign in to comment.