Skip to content
Snippets Groups Projects
Commit d894f883 authored by Benjamin R's avatar Benjamin R Committed by Ken Rickard
Browse files

Issue #3336388 by benJBmC: Update getDrupalVersion method for D10

parent 00632556
No related branches found
No related tags found
1 merge request!61phpcs error
......@@ -27,10 +27,10 @@ class DomainSourceServiceProvider extends ServiceProviderBase {
* Determines the Drupal version.
*
* @return int
* The core numberic version.
* The core numeric version.
*/
private function getDrupalVersion() {
return (int) substr(\Drupal::VERSION, 0, 1);
return (int) explode('.', \Drupal::VERSION)[0];
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment