inc/I18n/MakePotCommand.php
protected function extract_strings() {

		$old_exclude = $this->exclude;
		$this->exclude[] = '*.blade.php';
		$translations = parent::extract_strings();

		WP_CLI::log( 'Extracting strings from .blade.php templates...' );

		try {
			// TODO: We're suppressing PHP Warnings until this PR is approved: https://github.com/wp-cli/i18n-command/pull/149
			@BladeCodeExtractor::fromDirectory( $this->source, $translations, [
				// Extract 'Template Name' headers in theme files.
				'wpExtractTemplates' => isset( $this->main_file_data['Theme Name'] ),
				'include'            => [ '*.blade.php' ],
				'exclude'            => $old_exclude,
				'extensions'         => [ 'php' ],
			] );
		} catch ( \Exception $e ) {
			WP_CLI::error( $e->getMessage() );
		}

		return $translations;
	}
protected function extract_strings() {

		$old_exclude = $this->exclude;
		$this->exclude[] = '*.blade.php';
		$translations = parent::extract_strings();

		WP_CLI::log( 'Extracting strings from .blade.php templates...' );

		try {
			// TODO: We're suppressing PHP Warnings until this PR is approved: https://github.com/wp-cli/i18n-command/pull/149
			@BladeCodeExtractor::fromDirectory( $this->source, $translations, [
				// Extract 'Template Name' headers in theme files.
				'wpExtractTemplates' => isset( $this->main_file_data['Theme Name'] ),
				'include'            => [ '*.blade.php' ],
				'exclude'            => $old_exclude,
				'extensions'         => [ 'php' ],
			] );
		} catch ( \Exception $e ) {
			WP_CLI::error( $e->getMessage() );
		}

		return $translations;
	}
{@inheritdoc}