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

Remove all checks for define() #141

Merged
merged 1 commit into from
Mar 27, 2024

Conversation

andrewnicols
Copy link
Contributor

These checks never worked. The get_defines() method built a list of definitions, added them to a $defines array, but return $this->defines instead.

Furthermore there would be pandamonium if we actually fixed this because we use constants in scripts all over Moodle with the same value, for example:

define('CLI_SCRIPT', true);

@andrewnicols andrewnicols self-assigned this Mar 22, 2024
andrewnicols added a commit to andrewnicols/moodle-local_moodlecheck that referenced this pull request Mar 22, 2024
These checks never worked. The `get_defines()` method built a list of
definitions, added them to a `$defines` array, but return
`$this->defines` instead.

Furthermore there would be pandamonium if we actually fixed this because
we use constants in scripts all over Moodle with the same value, for
example:

```
define('CLI_SCRIPT', true);
```
@stronk7
Copy link
Member

stronk7 commented Mar 27, 2024

Whops, this is conflicting, would you take a look to it, please?

These checks never worked. The `get_defines()` method built a list of
definitions, added them to a `$defines` array, but return
`$this->defines` instead.

Furthermore there would be pandamonium if we actually fixed this because
we use constants in scripts all over Moodle with the same value, for
example:

```
define('CLI_SCRIPT', true);
```
@andrewnicols
Copy link
Contributor Author

Rebased :)

@stronk7 stronk7 merged commit 66c997c into moodlehq:main Mar 27, 2024
20 checks passed
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