getUserId returns string instead of int or bool
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3413273. -->
Reported by: [benstallings](https://www.drupal.org/user/210009)
Related to !4
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>I'm not sure what's causing this to happen, but I'm getting the following error in my logs:</p>
<blockquote><p>TypeError: Drupal\set_author\Plugin\EntityShareClient\Processor\SetAuthor::getUserId(): Return value must be of type int|bool, string returned in Drupal\set_author\Plugin\EntityShareClient\Processor\SetAuthor->getUserId() (line 213 of /app/web/modules/contrib/set_author/src/Plugin/EntityShareClient/Processor/SetAuthor.php)</p></blockquote>
<h4 id="summary-steps-reproduce">Steps to reproduce</h4>
<p>Unclear.</p>
<h3 id="summary-proposed-resolution">Proposed resolution</h3>
<p>Since Drupal generally treats integer strings as integers when dealing with IDs, I propose adding an (int) type hint on the return statement to satisfy the function's own constraint.</p>
<h3 id="summary-remaining-tasks">Remaining tasks</h3>
<p>make a fork</p>
issue