Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions statsdata.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ public function getContent()

public function hookDisplayBeforeBodyClosingTag($params)
{
if (method_exists('Connection', 'isBot') && Connection::isBot()) {
return '';
}

$script_content_plugins = $this->getScriptPlugins($params);
$script_content_pages_views = $this->getScriptCustomerPagesViews($params);

Expand Down
1 change: 1 addition & 0 deletions tests/phpstan/phpstan-1.7.1.2.neon
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ includes:

parameters:
ignoreErrors:
- '#Call to an undefined static method Connection::isBot\(\)\.#'
- '#Property ObjectModelCore::\$id \(int\) does not accept null.#'
1 change: 1 addition & 0 deletions tests/phpstan/phpstan-1.7.2.5.neon
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ includes:

parameters:
ignoreErrors:
- '#Call to an undefined static method Connection::isBot\(\)\.#'
- '#Property ObjectModelCore::\$id \(int\) does not accept null.#'
1 change: 1 addition & 0 deletions tests/phpstan/phpstan-1.7.3.4.neon
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ includes:

parameters:
ignoreErrors:
- '#Call to an undefined static method Connection::isBot\(\)\.#'
- '#Property ObjectModelCore::\$id \(int\) does not accept null.#'
1 change: 1 addition & 0 deletions tests/phpstan/phpstan-1.7.4.4.neon
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ includes:

parameters:
ignoreErrors:
- '#Call to an undefined static method Connection::isBot\(\)\.#'
- '#Property ObjectModelCore::\$id \(int\) does not accept null.#'
1 change: 1 addition & 0 deletions tests/phpstan/phpstan-1.7.5.1.neon
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ includes:

parameters:
ignoreErrors:
- '#Call to an undefined static method Connection::isBot\(\)\.#'
- '#Property ObjectModelCore::\$id \(int\) does not accept null.#'
1 change: 1 addition & 0 deletions tests/phpstan/phpstan-1.7.6.neon
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ includes:

parameters:
ignoreErrors:
- '#Call to an undefined static method Connection::isBot\(\)\.#'
- '#Property ObjectModelCore::\$id \(int\) does not accept null.#'
1 change: 1 addition & 0 deletions tests/phpstan/phpstan-1.7.7.neon
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ includes:

parameters:
ignoreErrors:
- '#Call to an undefined static method Connection::isBot\(\)\.#'
- '#Property ObjectModelCore::\$id \(int\) does not accept null.#'
1 change: 1 addition & 0 deletions tests/phpstan/phpstan-1.7.8.neon
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ includes:

parameters:
ignoreErrors:
- '#Call to an undefined static method Connection::isBot\(\)\.#'
Loading