Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure config.php is compatible with our supported PHP versions #299

Merged
merged 1 commit into from
Nov 24, 2024

Conversation

markmetcalfe
Copy link
Member

Our example config.php isn't compatible with PHP 5.3, so when someone tries to run a (very) old Totara site, they'll get an error since PHP 5.3 doesn't support the square bracket array syntax. This PR changes the config.php to use the array() notation, and adds a CI check to ensure that any future changes to config.php are compatible with both PHP 5.3 and PHP 8

'ngrok-free.app',
'ngrok.app',
];
$ngrok_urls = array('ngrok-free.app', 'ngrok.app');
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: I removed the .io URL as ngrok no longer uses .io

Copy link
Member

@derschatta derschatta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well spotted

@derschatta derschatta merged commit 0c5a561 into totara:master Nov 24, 2024
1 check passed
@markmetcalfe markmetcalfe deleted the validate-configphp branch November 24, 2024 22:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants