@@ -60,7 +60,7 @@ protected function rewriteDefaultPermissionsAfterBoot()
6060 * @dataProvider allowedUsersToLike
6161 * @test
6262 */
63- public function can_like_a_post_if_allowed (int $ postId , ?int $ authenticatedAs , string $ message , bool $ canLikeOwnPost = null )
63+ public function can_like_a_post_if_allowed (int $ postId , ?int $ authenticatedAs , string $ message , ? bool $ canLikeOwnPost = null )
6464 {
6565 if (! is_null ($ canLikeOwnPost )) {
6666 $ this ->setting ('flarum-likes.like_own_post ' , $ canLikeOwnPost );
@@ -80,7 +80,7 @@ public function can_like_a_post_if_allowed(int $postId, ?int $authenticatedAs, s
8080 * @dataProvider unallowedUsersToLike
8181 * @test
8282 */
83- public function cannot_like_a_post_if_not_allowed (int $ postId , ?int $ authenticatedAs , string $ message , bool $ canLikeOwnPost = null )
83+ public function cannot_like_a_post_if_not_allowed (int $ postId , ?int $ authenticatedAs , string $ message , ? bool $ canLikeOwnPost = null )
8484 {
8585 if (! is_null ($ canLikeOwnPost )) {
8686 $ this ->setting ('flarum-likes.like_own_post ' , $ canLikeOwnPost );
@@ -100,7 +100,7 @@ public function cannot_like_a_post_if_not_allowed(int $postId, ?int $authenticat
100100 * @dataProvider allowedUsersToLike
101101 * @test
102102 */
103- public function can_dislike_a_post_if_liked_and_allowed (int $ postId , ?int $ authenticatedAs , string $ message , bool $ canLikeOwnPost = null )
103+ public function can_dislike_a_post_if_liked_and_allowed (int $ postId , ?int $ authenticatedAs , string $ message , ? bool $ canLikeOwnPost = null )
104104 {
105105 if (! is_null ($ canLikeOwnPost )) {
106106 $ this ->setting ('flarum-likes.like_own_post ' , $ canLikeOwnPost );
0 commit comments