Skip to content

Commit

Permalink
make terminateAjaxIfCanTerminate protected
Browse files Browse the repository at this point in the history
  • Loading branch information
mvorisek committed Mar 31, 2024
1 parent cbf2738 commit 7cc67d5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/JsCallback.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public function set($fx = null, $args = null)
* A proper way to finish execution of AJAX response. Generates JSON
* which is returned to frontend.
*/
public function terminateAjaxIfCanTerminate(JsBlock $ajaxec): void
protected function terminateAjaxIfCanTerminate(JsBlock $ajaxec): void
{
$data = [
'success' => true,
Expand Down
2 changes: 1 addition & 1 deletion src/JsSse.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public function send(JsExpressionable $action): void
* @return never
*/
#[\Override]
public function terminateAjaxIfCanTerminate(JsBlock $ajaxec): void
protected function terminateAjaxIfCanTerminate(JsBlock $ajaxec): void
{
$ajaxecStr = $ajaxec->jsRender();
if ($ajaxecStr !== '') {
Expand Down

0 comments on commit 7cc67d5

Please sign in to comment.